Updating GridPanel Store in AjaxEvent
New Community Forums available at http://forums.ext.net
 

Coolite Forums

Welcome Guest ( Login | Register )
 
Updating GridPanel Store in AjaxEvent
Subscribe
Last Login: 6/25/2010 5:59:48 AM
Posts: 26,
Posted 3/9/2010 6:24:38 AM

Group: Coolite Early Adopter
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
Last Login: 6/26/2010 6:01:39 AM
Posts: 4,
Posted 3/9/2010 5:49:32 PM

Group: Coolite Early Adopter

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

English can not read!

我比较喜欢用coolite 功能实现的比较方便!

学习的地方http://www.dt18.net/coolite

Last Login: 6/25/2010 5:59:48 AM
Posts: 26,
Posted 3/10/2010 1:36:43 AM

Group: Coolite Early Adopter
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)?
« Prev Topic | Next Topic »
Reading This Topic
Active Users: 0 ( 0 guests, 0 members, 0 anonymous members )
No members currently viewing this topic.
All times are GMT -5:00, Time now is 8:42pm