Feb 12, 2016, 12:31 PM
[Ext net MVC] Server mapping and server proxy problem.
Hi,
I have a problem with my Ext net app.
I have a grid panel with paging. On click on button refresh i have a server proxy refresh like:
What i have must do to get it work ?
I have a problem with my Ext net app.
I have a grid panel with paging. On click on button refresh i have a server proxy refresh like:
.ServerProxy(Html.X().AjaxProxy()
.Url(Url.Action("GetDeclarationToPage"))
)
public ActionResult GetDeclarationToPage()
{
string SearchFor = "";
if(Session["LAST_SEARCHED"] != null)
SearchFor = Session["LAST_SEARCHED"].ToString();
var Model = _unitOfWork.UserDeclarationRep.GetDeclarationViewModelForSurname(SearchFor,_userDeclarationFamily);
return this.Store(Model.RaportModel);
}
Problem is that in model i have model field with server mapping:new ModelField { Name = "OptionalParameter", ServerMapping = "OptionalParameter.ParametrDesc", Type = ModelFieldType.String },
When i refresh page in my server mapping model field i have a "object.object" instead of my real data.What i have must do to get it work ?