How to get the return value (Panel) from DirectMethod in Javascript function and add it to a TabPanel?

  1. #1

    How to get the return value (Panel) from DirectMethod in Javascript function and add it to a TabPanel?

    Ext.net v2.2
    .Net Framework v4.5
    My Direct Method

     [DirectMethod]
            public static Panel AddTab(int postId)
            {
                var pnlEditPost = new Panel
                {
                    ID = postId.ToString(),
                    Icon = Icon.BookEdit,
                    Title = "Edit",
                    Layout = "Fit",
                    Closable = true,
                    AutoDoLayout = true
                };
                return pnlEditPost;
            }
    I dont know how to get the return value (Panel) in JavaScript and add it to my TabPanel
    Last edited by Saman; Jun 18, 2013 at 9:41 AM.

Similar Threads

  1. Replies: 6
    Last Post: Jun 10, 2013, 5:37 AM
  2. Replies: 1
    Last Post: Jan 25, 2012, 8:17 AM
  3. Replies: 0
    Last Post: Jan 11, 2012, 8:30 AM
  4. Replies: 6
    Last Post: Mar 11, 2011, 5:30 AM
  5. Replies: 13
    Last Post: Feb 24, 2010, 5:34 PM

Tags for this Thread

Posting Permissions