/// <summary> /// /// </summary> /// <param name="e"></param> protected override void OnPreRender(System.EventArgs e) { base.OnPreRender(e); if (this.StoreID.IsNotEmpty()) { StoreBase store = Ext.Net.Utilities.ControlUtils.FindControl <StoreBase>(this.Page, this.StoreID); if (store != null) { store.IsPagingStore = true; } } else { IStore <Store> cmp = this.ParentComponent as IStore <Store>; if (cmp != null) { if (cmp.Store.Primary != null) { cmp.Store.Primary.IsPagingStore = true; cmp.Store.Primary.ForceIdRendering = true; } else if (cmp.StoreID.IsNotEmpty()) { StoreBase store = Ext.Net.Utilities.ControlUtils.FindControl <StoreBase>(this.Page, cmp.StoreID); if (store != null) { store.ForceIdRendering = true; store.IsPagingStore = true; } } } } }