[FIXED] [#158] [2.x] Grid horizontal scrollbar jumps back to beginning when selecting a record

Page 1 of 3 123 LastLast
  1. #1

    [FIXED] [#158] [2.x] Grid horizontal scrollbar jumps back to beginning when selecting a record

    Move scrollbar all the way to the right. Select a row. Scrollbar jumps back to the left. This does not happen in 1.x. It can lead to frustrating user experience when you are trying to look at right most columns and selecting different records.

    <script runat="server">
        Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
            If Not IsPostBack Then
                LoadGrid()
            End If
        End Sub
          
        Protected Function GetTestData(param As String) As Generic.List(Of Object)
            Dim list As New System.Collections.Generic.List(Of Object)
            
            For i As Integer = 0 To 5
                list.Add(New With {.Key = Guid.NewGuid(), .StringColumn = param & i.ToString(), .DescColumn = "Description " & i.ToString(), .DateColumn = DateTime.Now(), .NumericColumn = i})
            Next
          
            Return list
        End Function
        
        Protected Sub LoadGrid()
            Me.storePageLoad.DataSource = GetTestData("Item")
            Me.storePageLoad.DataBind()
        End Sub    
    </script>
    <!DOCTYPE html>
    <html>
    <head id="Head1" runat="server">
    </head>
    <body>
        <form id="Form1" runat="server">
        <ext:ResourceManager ID="ResourceManager1" runat="server" ScriptMode="Debug" />
        <ext:GridPanel runat="server" ID="gridPageLoad" Height="200" Width="500">
            <Store>
                <ext:Store runat="server" ID="storePageLoad">
                    <Model>
                        <ext:Model ID="Model1" runat="server">
                            <Fields>
                                <ext:ModelField Name="StringColumn">
                                </ext:ModelField>
                                <ext:ModelField Name="DateColumn" Type="Date">
                                </ext:ModelField>
                                <ext:ModelField Name="NumericColumn" Type="Float">
                                </ext:ModelField>
                            </Fields>
                        </ext:Model>
                    </Model>
                </ext:Store>
            </Store>
            <ColumnModel>
                <Columns>
                    <ext:RowNumbererColumn ID="RowNumbererColumn1" runat="server" Locked="true">
                    </ext:RowNumbererColumn>
                    <ext:Column ID="Column1" runat="server" Text="String" DataIndex="StringColumn" Width="250"
                        Locked="true">
                    </ext:Column>
                    <ext:DateColumn ID="DateColumn1" runat="server" Text="Date" DataIndex="DateColumn"
                        Width="250">
                    </ext:DateColumn>
                    <ext:NumberColumn ID="NumberColumn1" runat="server" Text="Number" DataIndex="NumericColumn"
                        Width="150">
                    </ext:NumberColumn>
                </Columns>
            </ColumnModel>
        </ext:GridPanel>
        </form>
    </body>
    </html>
    Last edited by fabricio.murta; Apr 26, 2016 at 10:41 PM.
  2. #2
    Hi @jchau,

    Thank you for the report.

    Seems it only happens in IE. It is OK with FireFox and Chrome.

    Can you confirm?
  3. #3
    Quote Originally Posted by Daniil View Post
    Hi @jchau,

    Thank you for the report.

    Seems it only happens in IE. It is OK with FireFox and Chrome.

    Can you confirm?
    Yes, this seems to be IE only. I am testing with IE9 with compatibility mode off. It works fine in Chrome and Firefox.
  4. #4
    Thank you for confirming.

    I reported to Sencha.
    http://www.sencha.com/forum/showthread.php?257927

    And created an Issue to track the defect.
    https://github.com/extnet/Ext.NET/issues/158
  5. #5
    Can you tell me if this is fixed in latest 4.2.1 GA? Release note says a similar bug is fixed: EXTJSIV-8795.

  6. #6
    Yes, it appears to be fixed. I have updated the Sencha thread with a new post.
    http://www.sencha.com/forum/showthre...927#post970141
  7. #7
    Quote Originally Posted by Daniil View Post
    Yes, it appears to be fixed. I have updated the Sencha thread with a new post.
    http://www.sencha.com/forum/showthre...927#post970141
    Hi Daniil,
    The vertical Scrollbar also jump to bottom from top of page, when click gridpanel's cell.
    Do you have any suggestions or ideas?
    Thank you.
  8. #8
    I still seem to be having the original problem with IE here. Is there a work around?
  9. #9
  10. #10
    Where should this snippet be placed?
Page 1 of 3 123 LastLast

Similar Threads

  1. Replies: 19
    Last Post: Jan 05, 2016, 11:43 PM
  2. Replies: 10
    Last Post: Nov 24, 2015, 6:54 PM
  3. [CLOSED] IE7 Horizontal ScrollBar
    By cwolcott in forum 2.x Legacy Premium Help
    Replies: 2
    Last Post: May 01, 2015, 4:13 PM
  4. Replies: 6
    Last Post: Nov 12, 2014, 8:35 PM
  5. Replies: 5
    Last Post: Apr 03, 2013, 5:59 AM

Posting Permissions