[CLOSED] [MVC] ContentFromAction in codeBehind

  1. #1

    [CLOSED] [MVC] ContentFromAction in codeBehind

    Hi guys,

    i would like to call ContentFromAction function in code behind. It's possible ?

     public Panel.Config DetailAlertFatory(Alert alert)
            {
                Panel.Config container = new Panel.Config()
                {
                    Layout = LayoutType.Fit.ToString()
                };
                
                Panel panelGrid = new Panel()
                {
                    Layout = LayoutType.Fit.ToString(),
                    Flex = 1
                };
                panelGrid.ContentFromAction ...
                container.Items.Add(panelGrid);
                return container;
            }
    Regards
    Last edited by Daniil; Nov 19, 2013 at 1:20 PM. Reason: [CLOSED]
  2. #2
    Hello!

    Could you say why do you need that? It was designed to be called from Views to simplify markup but in your case you can get this content directly from required method.
  3. #3
    Hi,

    i have Panel.Config A with a panel B.

    B contains only a partial view,who defines a DevExpress GridView.

    i don't understand how to :
    get this content directly from required method.
    Regards
  4. #4
    Hi,

    I guess this should work.
    Panel panel = new Panel();
    panel.ToBuilder().ContentFromPartial("partial view name");
  5. #5
    thank you daniil.

Similar Threads

  1. [CLOSED] TextField in codebehind
    By vgvallee in forum 2.x Legacy Premium Help
    Replies: 3
    Last Post: Jul 10, 2013, 8:14 PM
  2. Ext.NET & Codebehind
    By plykkegaard in forum Examples and Extras
    Replies: 17
    Last Post: Jul 31, 2012, 2:03 PM
  3. Get json in codebehind.
    By luiz in forum 1.x Help
    Replies: 0
    Last Post: Apr 19, 2011, 4:14 PM
  4. Why use Markup instead of Codebehind?
    By dbassett74 in forum 1.x Help
    Replies: 1
    Last Post: Apr 21, 2009, 7:51 PM
  5. CodeBehind ext:GridPanel
    By Kipetcoff in forum 1.x Help
    Replies: 16
    Last Post: Feb 10, 2009, 9:27 AM

Tags for this Thread

Posting Permissions