[CLOSED] SplitCommand shared menu destroyed on store load

  1. #1

    [CLOSED] SplitCommand shared menu destroyed on store load

    Hi there Ext.Net team, its good to be back after some time :)

    This post is in context of this comment from vlad where he advised using Shared=true on SplitCommand menu to save resources:
    http://forums.ext.net/showthread.php...ll=1#post37828

    It seems like the shared menu is destroyed if the store is re-loaded after an initial load and no new menu is created on re-load.
    Last edited by Daniil; Apr 25, 2012 at 7:34 PM. Reason: [CLOSED]
  2. #2
    Hi,

    Thanks for the report. I've reproduce with the example below.

    We will investigate.

    Example
    <%@ Page Language="C#" %>
     
    <%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
    
    <script runat="server">
        protected void Store_RefreshData(object sender, StoreRefreshDataEventArgs e)
        {
            Store store = sender as Store;
            store.DataSource = new object[] 
            { 
                new object[] { "test1", "test2", "test3" },
                new object[] { "test4", "test5", "test6" },
                new object[] { "test7", "test8", "test9" },
            };
        }
    </script>
    
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head runat="server">
        <title>Ext.NET Example</title>
    </head>
    <body>
        <form runat="server">
            <ext:ResourceManager runat="server" />
            <ext:GridPanel ID="GridPanel1" runat="server" AutoHeight="true">
                <Store>
                    <ext:Store runat="server" OnRefreshData="Store_RefreshData">
                        <Proxy>
                            <ext:PageProxy />
                        </Proxy>
                        <Reader>
                            <ext:ArrayReader>
                                <Fields>
                                    <ext:RecordField Name="test1" />
                                    <ext:RecordField Name="test2" />
                                    <ext:RecordField Name="test3" />
                                </Fields>
                            </ext:ArrayReader>
                        </Reader>
                    </ext:Store>
                </Store>
                <ColumnModel runat="server">
                    <Columns>
                        <ext:Column Header="Test1" DataIndex="test1" />
                        <ext:Column Header="Test2" DataIndex="test2" />
                        <ext:Column Header="Test3" DataIndex="test3" />
                        <ext:CommandColumn>
                            <Commands>
                                <ext:SplitCommand Text="Button">
                                    <Menu Shared="true">
                                        <Items>
                                            <ext:MenuCommand CommandName="command1" Text="Item 1" />
                                            <ext:MenuCommand CommandName="command2" Text="Item 2" />
                                        </Items>
                                    </Menu>
                                </ext:SplitCommand>
                            </Commands>
                        </ext:CommandColumn>
                    </Columns>
                </ColumnModel>
            </ext:GridPanel>
            <ext:Button runat="server" Text="Reload">
                <Listeners>
                    <Click Handler="GridPanel1.getStore().reload();" />
                </Listeners>
            </ext:Button>
        </form>
    </body>
    </html>
  3. #3
    Hi,

    Thanks for the report. Fixed in SVN. Please update and retest
  4. #4
    Thanks Vlad and Danill, I cannot update from SVN for now, as we are very close to a release and cannot risk breaking something with the update. Will update afterwards...
  5. #5
    You can update CommandColumn.js file only (there are not much changes)
  6. #6
    Quote Originally Posted by Vladimir View Post
    You can update CommandColumn.js file only (there are not much changes)
    Okay thanks vlad!!

Similar Threads

  1. [CLOSED] Shared store with buffered grid
    By Justin_Wignall in forum 2.x Legacy Premium Help
    Replies: 4
    Last Post: Aug 05, 2012, 2:00 PM
  2. [CLOSED] Desktop windows not destroyed on closing
    By SymSure in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Jan 30, 2012, 7:04 PM
  3. Load menu panel from controller
    By wadhah in forum 1.x Help
    Replies: 1
    Last Post: Oct 28, 2011, 1:48 PM
  4. [CLOSED] Store Load-handler cant reload child store
    By Jurke in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Feb 04, 2011, 7:56 AM
  5. Replies: 4
    Last Post: Dec 01, 2010, 10:48 AM

Posting Permissions