Oct 17, 2012, 4:03 PM
[CLOSED] How to use StoreFor Model
Hi,
I try to use StoreForModel like your examples in the Ext.Net.MVC.Examples project.
In your models, there is these lines of code:
In my case, I want to load data dynamically with parameters. How can I set Proxy in the View, and how can I pass the parameter?
For other attribute like VirtualModelField, ClientResource, how can I use in the View?
Thanks in advance.
I try to use StoreForModel like your examples in the Ext.Net.MVC.Examples project.
In your models, there is these lines of code:
[Proxy(Read="~/Models/StoreFor/GetEmployees")]
[JsonReader(Root = "data")]
[VirtualModelField(Name="FullName", ConvertHandler="fullNameBuilder")]
[ClientResource(Path="~/Areas/Models/Content/storeHelpers.js")]
So, when I use Html.X().StoreFor<Ext.Net.MVC.Examples.Areas.Model s.Employee>() in the View, the data is loaded from StoreForControllers/GetEmployees.In my case, I want to load data dynamically with parameters. How can I set Proxy in the View, and how can I pass the parameter?
For other attribute like VirtualModelField, ClientResource, how can I use in the View?
Thanks in advance.
Last edited by Daniil; Oct 22, 2012 at 1:15 PM.
Reason: [CLOSED]