Updating GridPanel Store in AjaxEvent

  1. #1

    Updating GridPanel Store in AjaxEvent

    Hi all, I'm relatively new to coolite but am really enjoying it at the minute!

    What I'm trying to do is us a couple of gridpanels, and a treepanel on a page, using web services as the store objects proxy. This is all working fine, and behaving as I want!

    My next plan was to use an ajaxevent on the treeview click event, to fire a server side method (this is working fine too)!!

    In the method I wanted to reconfigure the gridpanels stores proxy settings (to point to a different service / change the service parameters), and then reload the gridpanels. This way the page is responsive, even if one of the gridpanels takes some time to return.

    The problem is that although I have updated the stores proxy, when I fire the reload method, the gridpanel still uses the original proxy.

    Is this something I can do something about, or am I approaching my problem wrong? I've put my server side method code below:

    
    
    
    
    protected void TestMethod(object sender, AjaxEventArgs e)
    
    
    {
    
    
    var x = e.ExtraParams[0];
    
    
    HttpProxy prx = new HttpProxy();
    
    
    prx.Url = string.Format("WatchlistService.asmx/GetAllWatchListItemsByEquipmentId?equipmentId={0}", x);
    
    
    Store1.Proxy.Clear();
    
    
    Store1.Proxy.Add(prx);
    
    
    
    
    
    GridPanel1.Reload();
    
    
    
    
    
    }
    Matt
  2. #2

    RE: Updating GridPanel Store in AjaxEvent



    AjaxEvent used to verify it is not released, so in general I are used to operate the event Listeners!

    English can not read!
  3. #3

    RE: Updating GridPanel Store in AjaxEvent

    Thanks for this - not 100% sure I understand though. Are you saying that the AjaxEvents are not fully released yet (i.e. still testing / beta)?

Similar Threads

  1. Help! Updating Store with complex data...
    By maxiom in forum 1.x Help
    Replies: 1
    Last Post: Aug 06, 2012, 8:49 AM
  2. [CLOSED] Store Filter Not Updating Grid
    By peter.campbell in forum 1.x Legacy Premium Help
    Replies: 6
    Last Post: May 23, 2012, 3:47 PM
  3. Replies: 1
    Last Post: Dec 12, 2011, 5:14 PM
  4. [CLOSED] Data Store not updating record mapping from codebehind
    By sadaf in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Nov 08, 2010, 4:42 PM
  5. [CLOSED] GridPanel and Store on AjaxEvent
    By state in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Sep 18, 2009, 5:31 PM

Posting Permissions