Results 1 to 5 of 5

Thread: Grid Grouping focus problem

    Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Sencha User
    Join Date
    Apr 2013
    Posts
    137

    Default Grid Grouping focus problem

    Check this on kitchen sink : http://examples.sencha.com/extjs/6.2.../#grouped-grid


    Do the following steps (Chrome 45/IE 11) :

    1- go to bottom of the grid
    2- open the last group
    3- click on the group's first row to take the focus
    4- go to top of the grid
    5- try to expand one of the collapsed groups
    6- you will see the focus turn back to the bottom of the grid

    NOTE1: We have same problem with collapsing
    NOTE2: We have same problem with ExtJs 6.2.1

  2. #2
    Sencha User
    Join Date
    Apr 2013
    Posts
    137

    Default

    A workaround can be something like this :

    Code:
    Ext.override(Ext.grid.feature.Grouping, {
        expand: function (group) {
            var me = this;
            me.grid.view.saveScrollState();//private method!
            me.callParent([group]);
            me.grid.view.restoreScrollState();//private method!
    
    
        },
        collapse: function (group) {
            var me = this;
    
    
            me.grid.view.saveScrollState();//private method!
            me.callParent([group]);
            me.grid.view.restoreScrollState();//private method!
        },
    
    
    
    
    });

  3. #3
    Sencha User
    Join Date
    Apr 2013
    Posts
    137

    Default

    Any confirmation from support team?

  4. #4

    Default Works perfect after overriding

    Quote Originally Posted by Mahmoud690 View Post
    A workaround can be something like this :

    Code:
    Ext.override(Ext.grid.feature.Grouping, {
        expand: function (group) {
            var me = this;
            me.grid.view.saveScrollState();//private method!
            me.callParent([group]);
            me.grid.view.restoreScrollState();//private method!
    
    
        },
        collapse: function (group) {
            var me = this;
    
    
            me.grid.view.saveScrollState();//private method!
            me.callParent([group]);
            me.grid.view.restoreScrollState();//private method!
        },
    
    
    
    
    });
    When used as is with overriding in Ovverride->Grid->features->grouping.js file. It works great. Retains the scroll position even with dynamic binding

  5. #5
    Sencha Premium Member
    Join Date
    Apr 2008
    Posts
    369

    Default

    I published a hotfix for this issue here: https://github.com/JarvusInnovations...placeScroll.js
    Chief Architect @ Jarv.us Innovations
    Co-captain @ Code for Philly

    Jarvus builds and optimizes top-quality Sencha Touch and ExtJS apps for open-source projects and clients of all sizes.

    Don't waste time with bugs that have already been found and fixed by the community, compile our tried and tested hotfixes packages into all your projects: https://github.com/JarvusInnovations/sencha-hotfixes

Similar Threads

  1. Problem with Grid grouping
    By cramade in forum Ext 2.x: Help & Discussion
    Replies: 4
    Last Post: 11 Jun 2009, 5:38 AM
  2. grouping grid problem
    By mehcun in forum Ext 2.x: Help & Discussion
    Replies: 1
    Last Post: 27 Jun 2008, 12:55 AM
  3. Problem with grouping grid
    By robert6000 in forum Ext 2.x: Help & Discussion
    Replies: 0
    Last Post: 23 Nov 2007, 12:06 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •