EnableLocking breaks Grid's getSelectionMemory

  1. #1

    EnableLocking breaks Grid's getSelectionMemory

    On the following example, Grid's getSelectionMemory is defined only when when Grid's EnableLocking (line 30) is set to false.

    Any ideas to overcome the issue?

    Thanks in advance.

    <script runat="server">
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!X.IsAjaxRequest)
            {
                this.Store1.DataSource = this.Data;
                this.Store1.DataBind();
            }
        }
    
        private object[] Data
        {
            get
            {
                return new object[]
                {
                    new object[] { "Raphael", 10},
                    new object[] { "Batista", 20},
                    new object[] { "Saldanha", 30},
                };
            }
        }
    </script>
    <!DOCTYPE html>
    <html>
    <head runat="server">
    </head>
    <body>
        <ext:ResourceManager runat="server" />
        <ext:GridPanel ID="_grd" EnableLocking="false" Title="Sample" Width="640" Height="400" runat="server">
            <Listeners>
                <AfterRender Handler="alert(App._grd.getSelectionMemory);" />
            </Listeners>
            <Store>
                <ext:Store ID="Store1" runat="server">
                    <Model>
                        <ext:Model runat="server">
                            <Fields>
                                <ext:ModelField Name="company" />
                                <ext:ModelField Name="price" Type="Float" />
                            </Fields>
                        </ext:Model>
                    </Model>
                </ext:Store>
            </Store>
            <ColumnModel runat="server">
                <Columns>
                    <ext:Column Text="Company" DataIndex="company" runat="server" />
                    <ext:Column Text="Price" DataIndex="price" Width="75" runat="server" />
                </Columns>
            </ColumnModel>
        </ext:GridPanel>
    </body>
    </html>
  2. #2
    GridPanel's getSelectionSubmit is also undefined when Grid's EnableLocking is set to true.
  3. #3
    I use both grid's getSelectionMemory and getSelectionSubmit to clear grid's selection, as suggested on the following post: http://forums.ext.net/showthread.php...l=1#post199001
  4. #4
    Bump Bump :)

Similar Threads

  1. [CLOSED] Grouping a grid by a column with null values breaks the grid
    By adrianot in forum 3.x Legacy Premium Help
    Replies: 3
    Last Post: Feb 22, 2016, 7:44 PM
  2. [CLOSED] Column's constrain breaks grid's layout
    By RCN in forum 3.x Legacy Premium Help
    Replies: 3
    Last Post: Feb 09, 2015, 12:17 PM
  3. Replies: 3
    Last Post: Sep 25, 2014, 10:17 PM
  4. Replies: 11
    Last Post: Apr 04, 2013, 4:49 AM
  5. Replies: 5
    Last Post: Dec 12, 2008, 2:09 PM

Posting Permissions