Jun 18, 2013, 7:46 AM
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
.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.