[CLOSED] GridPanel CheckColumn does not retain the focus/viewport

  1. #1

    [CLOSED] GridPanel CheckColumn does not retain the focus/viewport

    I am using a grid panel with the checkcolumn for selection.
    When i get scroll bar on the grid and try to select the row in the bottom.
    After clicking the checkbox on the last row, it scrolls up and the focus or viewport changes... the selected row does not stays in the view.

    Please suggest, why its happening and how to control this behavior.

    Thanks,
    Rajiv Dutt
    Last edited by Daniil; Jun 24, 2014 at 2:12 PM. Reason: [CLOSED]
  2. #2
    Hi @RajivDutt,

    I cannot reproduce. Tested with the latest Ext.NET in FireFox.

    Example
    <%@ Page Language="C#" %>
    
    <script runat="server">
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!X.IsAjaxRequest)
            {
                Store store = this.GridPanel1.GetStore();
                store.DataSource = new object[] 
                { 
                    new object[] { "test", false },
                    new object[] { "test", false },
                    new object[] { "test", false },
                    new object[] { "test", false },
                    new object[] { "test", false },
                    new object[] { "test", false },
                    new object[] { "test", false },
                    new object[] { "test", false },
                    new object[] { "test", false },
                    new object[] { "test", false },
                    new object[] { "test", false },
                    new object[] { "test", false },
                    new object[] { "test", false },
                    new object[] { "test", false },
                    new object[] { "test", false }
                };
            }
        }
    </script>
    
    <!DOCTYPE html>
    
    <html>
    <head runat="server">
        <title>Ext.NET v2 Example</title>
    </head>
    <body>
        <form runat="server">
            <ext:ResourceManager runat="server" />
    
            <ext:GridPanel ID="GridPanel1" runat="server" Height="100">
                <Store>
                    <ext:Store runat="server">
                        <Model>
                            <ext:Model runat="server">
                                <Fields>
                                    <ext:ModelField Name="test1" />
                                    <ext:ModelField Name="test2" />
                                </Fields>
                            </ext:Model>
                        </Model>
                    </ext:Store>
                </Store>
                <ColumnModel runat="server">
                    <Columns>
                        <ext:Column runat="server" Text="Test 1" DataIndex="test1" />
                        <ext:CheckColumn runat="server" Text="CheckColumn" DataIndex="test2" Editable="true" />
                    </Columns>
                </ColumnModel>
            </ext:GridPanel>
        </form>
    </body>
    </html>

Similar Threads

  1. Grid Panel Cell Editing focus in CheckColumn
    By shaileshsakaria in forum 2.x Help
    Replies: 3
    Last Post: Apr 27, 2013, 11:58 AM
  2. [CLOSED] CheckColumn in GridPanel
    By softmachine2011 in forum 1.x Legacy Premium Help
    Replies: 7
    Last Post: Sep 18, 2012, 11:53 AM
  3. Replies: 2
    Last Post: Jun 15, 2010, 7:07 AM
  4. [CLOSED] [1.0] GridPanel CheckColumn
    By methode in forum 1.x Legacy Premium Help
    Replies: 5
    Last Post: Nov 26, 2009, 8:14 AM
  5. GridPanel CheckColumn problem
    By Argons in forum 1.x Help
    Replies: 1
    Last Post: Aug 19, 2009, 11:34 AM

Posting Permissions