Aug 30, 2012, 7:54 PM
Passing a model to a window called by a direct event
Hi
I am having a problem loading the model into a strongly typed page with MVC3 and ext.net 2.
The controller code looks like this
I am having a problem loading the model into a strongly typed page with MVC3 and ext.net 2.
The controller code looks like this
Ext.Net.MVC.PartialViewResult partialViewResult = new Ext.Net.MVC.PartialViewResult();
partialViewResult.SingleControl = true;
if (!string.IsNullOrEmpty(viewName))
{
partialViewResult.ViewName = GetViewName(viewName);
}
if (model != null)
{
partialViewResult.ViewData.Model = model;
}
partialViewResult.Model = model;
// partialViewResult.ViewData.Model = model;
return partialViewResult;
When I debug I see that model does hav in the data structure and values.
Last edited by geoffrey.mcgill; Sep 01, 2012 at 6:28 AM.
Reason: please use [CODE] tags