Problems with ext: TabCloseMenu

  1. #1

    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

    <%@ 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.
  2. #2
    Can you provide more explanation as to why your sample is not working?

    When I rename "CloseOtherTabsText" to "CloseOthersTabsText", as you noted in the CHANGELOG.txt, the property renders as expected.
    Geoffrey McGill
    Founder
  3. #3
    Quote Originally Posted by geoffrey.mcgill View Post
    Can you provide more explanation as to why your sample is not working?

    When I rename "CloseOtherTabsText" to "CloseOthersTabsText", as you noted in the CHANGELOG.txt, the property renders as expected.
    Click image for larger version. 

Name:	Example A .jpg 
Views:	73 
Size:	32.1 KB 
ID:	4934Click image for larger version. 

Name:	Example B.jpg 
Views:	91 
Size:	98.7 KB 
ID:	4935

    Hello,
    I'm working with the V 2.0 dll ext.net my problem is to configure the plugin "ext: TabCloseMenu" generates the error that I mentioned above, but if I remove the plugin "ext: TabCloseMenu" did not generate any error. It is the source of the problem. DLLs are downloaded at the following address " https://github.com/extnet/Ext.NET.Community " work with Visual Studio 2010 and Framework 4. I think I have properly configured the plugin to change you put "CloseOthersTabsText" But the same problem I do not know what else I'm missing. At first I thought the problem was "CloseOthersTabsText" but it is not. It's all bone plugin: "ext: TabCloseMenu".

    details :

    Microsoft Visual Studio 2010
    Version 10.0.30319.1 RTMRel
    Microsoft. NET Framework
    Version 4.0.30319 RTMRel
    Installed Version: Ultimate
    Last edited by billy; Oct 16, 2012 at 10:53 PM.

Similar Threads

  1. Replies: 1
    Last Post: Nov 28, 2012, 2:55 AM
  2. Replies: 1
    Last Post: Nov 28, 2012, 2:12 AM
  3. [CLOSED] TabCloseMenu Localization
    By softmachine2011 in forum 2.x Legacy Premium Help
    Replies: 3
    Last Post: Jun 26, 2012, 1:06 PM
  4. [CLOSED] TabCloseMenu plugin firing close event
    By Justin_Wignall in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Jul 28, 2010, 12:18 PM

Posting Permissions