AjaxProxy Example

  1. #1

    AjaxProxy Example

    Hi,

    Please provide a AjaxProxy Example(in codeBehind). I did not find it in examples.ext.net.

    Thanks
  2. #2
    Any Update.........
  3. #3
    Not really sure what you mean by AjaxProxy?

    If you are not getting a reply to your forum posts, please post more information regarding the question, such as a code sample demonstrating as much of the scenario as possible. Just blindly bumping the thread doesn't really help.
    Geoffrey McGill
    Founder & CEO
  4. #4
    Thanks for your reply
  5. #5
    I want an example of ajaxproxy.

    Ajax proxy is a tag in store. Also store is defined in combobox or gridpanel. So any body understand my problem can help.

    Thanks
  6. #6
    I want pass a url for ajax proxy. And want to get data from that web service.

    Any example in code behind.

    Thanks
  7. #7
    Hi,

    I am using onIt function for combobox.

    protected override void OnInit (EventArgs e)
    		{
    			this.QueryMode = DataLoadMode.Remote;
    			this.TriggerAction = TriggerAction.All;
    			this.MinChars = 1;
    			this.PageSize = 10;
    			this.TypeAhead = false;
    			this.Editable = true;
    			this.ForceSelection = true;
    
    			var reader=new Ext.Net.JsonReader();
    			var model = new Model();
    
    			model.Fields.Add("fullname");
    
    			reader.Root = "data";
    			reader.TotalProperty = "total";
    
    			var proxy=new Ext.Net.AjaxProxy();
    			proxy.ActionMethods.Read = HttpMethod.POST;
    			proxy.Url = this.getProxyUrl();
    
    			var store=new Ext.Net.Store();
    			this.EnsureID();
    			store.ID = this.ID + "_store";
    			store.WarningOnDirty = false;
    			this.Store.Add(store);
    
    			store.Model.Add(model);
    			store.Reader.Add(reader);
    			store.Proxy.Add(proxy);
    
    			store.AutoLoad = false;			
    
    			base.OnInit(e);
    		}
    So any example regarding this.
  8. #8
    Hi @geoffrey.mcgill,

    Now understand or not. Want some more details. Feel free if want more details.

    Thanks
  9. #9

Similar Threads

  1. [CLOSED] [Razor] AjaxProxy pass extra parameter
    By boris in forum 2.x Legacy Premium Help
    Replies: 7
    Last Post: Sep 07, 2012, 8:15 AM
  2. Replies: 6
    Last Post: Jun 25, 2012, 3:50 PM
  3. Replies: 2
    Last Post: Jun 03, 2012, 4:18 PM
  4. Replies: 0
    Last Post: Jun 03, 2012, 3:46 AM
  5. [CLOSED] Set actionMethods of AJAXProxy
    By T3rryChan in forum 2.x Legacy Premium Help
    Replies: 5
    Last Post: Apr 23, 2012, 7:08 PM

Posting Permissions