Oct 16, 2012, 3:37 PM
Problems with ext: TabCloseMenu
Good afternoon,
Earlier in the forum section "Bugs" published an issue with the Plugin "ext: TabCloseMenu" here is the url: " http://forums.ext.net/showthread.php...n-the-TabPanel " in which to set the properties: "CloseAllTabsText", "CloseOthersTabsText" and "CloseTabText" me the following error: "Could not load file or assembly 'System.Web.Mvc, Version = 3.0.0.0, Culture = neutral , PublicKeyToken = 31bf3856ad364e35 'or one of its dependencies. the system can not find the file specified. "I notice that in the demo ext.net Version 2.0, in the "Getting Started" where it says "Changeslog" is this approach "[r4148] The property has been TabCloseMenu CloseOtherTabsText CloseOthersTabsText renamed to." Still present in doubt how to implement the code, please, I would like to help me fix the way how I set it up.
thank you very much
Ext.Net V 2.0
Earlier in the forum section "Bugs" published an issue with the Plugin "ext: TabCloseMenu" here is the url: " http://forums.ext.net/showthread.php...n-the-TabPanel " in which to set the properties: "CloseAllTabsText", "CloseOthersTabsText" and "CloseTabText" me the following error: "Could not load file or assembly 'System.Web.Mvc, Version = 3.0.0.0, Culture = neutral , PublicKeyToken = 31bf3856ad364e35 'or one of its dependencies. the system can not find the file specified. "I notice that in the demo ext.net Version 2.0, in the "Getting Started" where it says "Changeslog" is this approach "[r4148] The property has been TabCloseMenu CloseOtherTabsText CloseOthersTabsText renamed to." Still present in doubt how to implement the code, please, I would like to help me fix the way how I set it up.
thank you very much
Ext.Net V 2.0
<%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
<!DOCTYPE html>
<html>
<head id="Head1" runat="server">
<title>Adding Tabs On The Fly - Ext.NET Examples</title>
<link href="/resources/css/examples.css" rel="stylesheet" type="text/css" />
<ext:XScript ID="XScript1" runat="server">
<script type="text/javascript">
var addTab = function (tabPanel, id, url, menuItem) {
var tab = tabPanel.getComponent(id);
if (!tab) {
tab = tabPanel.add({
id : id,
title : url,
closable : true,
menuItem : menuItem,
loader : {
url : url,
renderer : "frame",
loadMask : {
showMask : true,
msg : "Loading " + url + "..."
}
}
});
tab.on("activate", function (tab) {
#{MenuPanel1}.setSelection(tab.menuItem);
});
}
tabPanel.setActiveTab(tab);
}
</script>
</ext:XScript>
</head>
<body>
<form id="Form1" runat="server">
<ext:ResourceManager ID="ResourceManager1" runat="server" />
<ext:Window ID="Window1"
runat="server"
Title="Adding tab"
Width="700"
Height="500"
Icon="Link"
Layout="BorderLayout">
<Items>
<ext:MenuPanel
ID="MenuPanel1"
runat="server"
Width="200"
Region="West">
<Menu ID="Menu1" runat="server">
<Items>
<ext:MenuItem ID="MenuItem1" runat="server" Text="Ext.NET">
<Listeners>
<Click Handler="addTab(#{TabPanel1}, 'idClt', 'http://www.ext.net', this);" />
</Listeners>
</ext:MenuItem>
<ext:MenuSeparator />
</Items>
</Menu>
</ext:MenuPanel>
<ext:TabPanel ID="TabPanel1" runat="server" Region="Center" >
<Plugins>
<ext:TabCloseMenu ID="TabCloseMenu1" runat="server" CloseAllTabsText="CloseAllTabsText2." CloseTabText="CloseAllTabsText2."
CloseOtherTabsText="CloseAllTabsText4." />
</Plugins>
</ext:TabPanel>
</Items>
</ext:Window>
</form>
</body>
</html>
Last edited by billy; Oct 16, 2012 at 3:51 PM.