Feb 21, 2013, 7:19 PM
[CLOSED] More explaination on one of your examples
I was hoping to get some clarification on one of the example pages in the MVC example explorer: http://mvc.ext.net/#/Portal/Complex/
On the page, there are several different controls binding to data when the page loads. The "Employees" grid has a store that uses a proxy to call "GetPersons", which I assume calls the below code in the controller.
Can you provide a little more detail on what is happening in that example that lets you have multiple controls each calling their own individual actions to load data when the page loads?
On the page, there are several different controls binding to data when the page loads. The "Employees" grid has a store that uses a proxy to call "GetPersons", which I assume calls the below code in the controller.
public ActionResult GetPersons()
{
return this.Direct(Data.GetAllPersons());
}
I am not immediately able to implement the same pattern as am not presented with the "Direct(" method in my controller. The only "using" in the example source code is for System.Web.Mvc - which I also have included in my controller.Can you provide a little more detail on what is happening in that example that lets you have multiple controls each calling their own individual actions to load data when the page loads?
Last edited by geoffrey.mcgill; Feb 22, 2013 at 7:42 PM.
Reason: [CLOSED]