コード例 #1
0
 public TreePanelNodeMover()
 {
     LeftReadProxy = new AjaxProxy();
     LeftReadProxy.ActionMethods.Read = HttpMethod.POST;
     RightReadProxy = new AjaxProxy();
     RightReadProxy.ActionMethods.Read = HttpMethod.POST;
 }
コード例 #2
0
        /// <summary>
        ///
        /// </summary>
        public AjaxProxy.Builder AjaxProxy(AjaxProxy component)
        {
#if MVC
            component.ViewContext = this.HtmlHelper != null ? this.HtmlHelper.ViewContext : null;
#endif
            return(new AjaxProxy.Builder(component));
        }
コード例 #3
0
        private Store GetStore()
        {
            Store store = new Store()
                {
                    ID = "Store1"
                };

            Model model = new Model()
                {
                    Fields =
                    {
                        new ModelField("name"),
                        new ModelField("thumb"),
                        new ModelField("url"),
                        new ModelField("type")
                    }
                };
            store.Model.Add(model);

            AjaxProxy proxy = new AjaxProxy()
                {
                    Url = "~/Examples/DataView/Shared/sencha-touch-examples.json",
                    Reader =
                    {
                        new JsonReader()
                    }
                };

            store.Proxy.Add(proxy);

            return store;
        }
コード例 #4
0
 /// <summary>
 ///
 /// </summary>
 public AjaxProxy.Builder AjaxProxy(AjaxProxy component)
 {
     return(new AjaxProxy.Builder(component));
 }
コード例 #5
0
ファイル: GridPanelEx.cs プロジェクト: dusdong/BaseComponent
 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);
 }
コード例 #6
0
        private Store GetStore()
        {
            Store store = new Store()
                {
                    ID = "Store1"
                };
            store.SortOnLoad = true;

            Model model = new Model()
                {
                    Fields =
                {
                    new ModelField("name"),
                    new ModelField("thumb"),
                    new ModelField("url"),
                    new ModelField("type")
                }
                };
            store.Model.Add(model);

            AjaxProxy proxy = new AjaxProxy()
                {
                    Url = "~/Areas/DataView_Basic/Content/sencha-touch-examples.json",
                    Reader =
                    {
                        new JsonReader()
                    }
                };

            store.Proxy.Add(proxy);

            return store;
        }