[CLOSED] Server side ItemsFromPartial

  1. #1

    [CLOSED] Server side ItemsFromPartial

    Panels can use method ItemsFromPartial(viewName) in Razor views.

    What is the best way to approximate this functionality server side?

    e.g.

    Panel pnl = new Panel();
    pnl.LoadFromPartial(viewName);
    Is is possible?
    Last edited by Daniil; Mar 03, 2015 at 9:53 AM. Reason: Please use [CODE] tags, [CLOSED]
  2. #2
    Hi @ehmdb,

    I would experiment with something like that.
    Ext.Net.Panel.Builder p = new Ext.Net.Panel.Builder();
    p.ItemsFromPartial("Partial");
    There is also a .ToBuilder() on Panel.
    Ext.Net.Panel p = new Ext.Net.Panel();
    p.ToBuilder().ItemsFromPartial("Partial");
    Though, I am not sure it all is going to work without a Razor view context.

Similar Threads

  1. Replies: 3
    Last Post: Dec 26, 2011, 1:32 PM
  2. Replies: 1
    Last Post: Dec 01, 2010, 5:14 PM
  3. Replies: 4
    Last Post: Mar 19, 2010, 11:35 AM

Tags for this Thread

Posting Permissions