Mar 31, 2012, 7:35 AM
[CLOSED] How to access/reload store in razor views/controller
Hi there,
How can I go about rebinding a store in the controller? i.e. how can I access the store in order to do something like:
How can I go about rebinding a store in the controller? i.e. how can I access the store in order to do something like:
this.Store1.DataSource = this.Data;
this.Store1.DataBind();
to give you some context - I have a single page with a form panel and a grid panel. The form panel gathers details and then calls into the controller to execute a query and return a collection. I now want the controller method to bind this collection to the store of the grid panel - how can I do this? Do I have to do something like what is above somehow? Or if I convert the collection into a StoreResult and return that, will the view simply handle it? How would this work with multiple stores in a single view?
Last edited by Daniil; Apr 06, 2012 at 9:59 AM.
Reason: Please use [CODE] tags, [CLOSED]