Ext.NET MVC – Press Button to Close the Existing Tab
Define Button from View // idBtn is the id of X.MenuItem() which is defined from Parent Page. X.Button().Text("Close Tab").OnClientClick("CloseTab('idBtn');") JavaScript to Close the Tab // App.TabPanel1 is the id of X.MenuPanel() which is defined from Parent Page. function CloseTab(id) { if (parent.App != null) { if(parent.App.TabPanel1 != null) { if (parent.App.TabPanel1.getComponent(id) != null) { parent.App.TabPanel1.closeTab(id); } } } } |
The Learning Progress seems like ASP.NET Web Form – GridView & Collection Binding … …