private void InitStore() { this._store = new Store(); _store.ID = ID + "Store"; this._store.RemoteFilter = true; this._store.RemoteGroup = true; this._store.RemotePaging = true; this._store.RemoteSort = true; this._store.Proxy.Clear(); if (Sorters != null) { _store.Sorters.AddRange(Sorters); } var readProxy = new AjaxProxy() { Url = ReadUrl }; readProxy.ActionMethods.Read = HttpMethod.POST; readProxy.Reader.Add(new JsonReader() { Root = "data", TotalProperty = "tota" }); this._store.Proxy.Add(readProxy); //this._store.ReadData += new SyncStoreBase.AjaxReadDataEventHandler(this.store_ReadData); if (!string.IsNullOrEmpty(OnBeforeLoad)) { _store.On("beforeload", OnBeforeLoad); } this._store.PageSize = this.PageSize; this.Store.Add(this._store); }
private void InitStore() { this._store = new Store(); _store.ID = ID + "Store"; this._store.RemoteFilter = true; this._store.RemoteGroup = true; this._store.RemotePaging = true; this._store.RemoteSort = true; this._store.Proxy.Clear(); if (Sorters != null) { _store.Sorters.AddRange(Sorters); } this._store.Proxy.Add(new PageProxy()); this._store.ReadData += new SyncStoreBase.AjaxReadDataEventHandler(this.store_ReadData); if (!string.IsNullOrEmpty(OnBeforeLoad)) { _store.On("beforeload", OnBeforeLoad); } this._store.PageSize = this.PageSize; this.Store.Add(this._store); }