sean
5 Apr 2007, 3:35 PM
hi all,
i'm working with a grid that is initially loaded using one url. later i want to reload the store from a different url based on a user's filter criteria. the grid is exactly the same, ie json + column model. i was hoping that i could just pass the url and the params in a config obj to the store's reload method but this isn't going to work after looking at the httpproxy source. the url that i pass to store.load() method via an options obj is simply passed as the arg property to the connection's request method.
in any case does anyone have an alternative. i was thinking that i would just create a new httpproxy and set it on the store. the only complication to this is that i need to also ensure that loadexceptions get relayed to the store, something that is set in the store's constructor. would appreciate any input.
thanks,
sean
i'm working with a grid that is initially loaded using one url. later i want to reload the store from a different url based on a user's filter criteria. the grid is exactly the same, ie json + column model. i was hoping that i could just pass the url and the params in a config obj to the store's reload method but this isn't going to work after looking at the httpproxy source. the url that i pass to store.load() method via an options obj is simply passed as the arg property to the connection's request method.
in any case does anyone have an alternative. i was thinking that i would just create a new httpproxy and set it on the store. the only complication to this is that i need to also ensure that loadexceptions get relayed to the store, something that is set in the store's constructor. would appreciate any input.
thanks,
sean