Passing a model to a window called by a direct event

  1. #1

    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

    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
  2. #2
    Unfortunately, you did not describe the problem (whats wrong with model passing?)
    Also please provide test sample demonstrates the problem (view, controller, partial view)
  3. #3
    Please see Item #3 at the following location,

    http://forums.ext.net/showthread.php...ation-Required
    Geoffrey McGill
    Founder

Similar Threads

  1. [CLOSED] Output Cache issue with Direct Method / Direct Event
    By amitpareek in forum 1.x Legacy Premium Help
    Replies: 18
    Last Post: Mar 01, 2013, 5:03 AM
  2. Desktop Window gridpanel direct event not firing
    By Karun Javvadi in forum 2.x Help
    Replies: 0
    Last Post: Jul 31, 2012, 12:16 PM
  3. Replies: 6
    Last Post: Nov 17, 2011, 9:54 AM
  4. Replies: 3
    Last Post: Oct 14, 2011, 5:05 AM
  5. Replies: 3
    Last Post: Apr 20, 2010, 12:21 PM

Posting Permissions