Page 3 of 5 FirstFirst 12345 LastLast
Results 21 to 30 of 48

Thread: How to prevent extjs grid from scrolling when clicking on a cell ?

    Success! Looks like we've fixed this one. According to our records the fix was applied for EXTJS-3994 in 4.2.0.663.
  1. #21
    Sencha User extgeek's Avatar
    Join Date
    Jul 2008
    Location
    New York USA
    Posts
    49
    Vote Rating
    0
      0  

    Default

    Code:
    Ext.override(Ext.selection.RowModel, {
        onRowMouseDown: function(view, record, item, index, e) {
    //        view.el.focus();
            this.selectWithEvent(record, e);
        }
    });
    This fix works with RowModel. I've the same issue with CellModel too.
    Anyone has a workaround for CellModel?

  2. #22
    Sencha - Ext JS Dev Team Animal's Avatar
    Join Date
    Mar 2007
    Location
    Notts/Redwood City
    Posts
    30,607
    Vote Rating
    59
      0  

    Default

    A better one might

    Code:
    Ext.override(Ext.selection.RowModel, {
        onRowMouseDown: function(view, record, item, index, e) {
            view.el.focus(200); / Focus the element in 0.2 seconds - time for the click to happen...
            this.selectWithEvent(record, e);
        }
    });

  3. #23
    Sencha User extgeek's Avatar
    Join Date
    Jul 2008
    Location
    New York USA
    Posts
    49
    Vote Rating
    0
      0  

    Default

    Animal thanks for the reply. That works for RowModel. Do you have a fix/workaround for CellModel (Ext 4.0.7)?

    Thanks

  4. #24
    Sencha Premium Member
    Join Date
    Nov 2011
    Posts
    45
    Vote Rating
    2
      0  

    Default

    any solution here for cell selection model please?

  5. #25
    Ext JS Premium Member
    Join Date
    May 2010
    Posts
    32
    Vote Rating
    0
      0  

    Default Happening on a grid with a template column

    4.1.1 version still have this issue when a template column is used in the grid
    Last edited by sraghavachari; 16 Aug 2012 at 11:33 AM. Reason: Set right version

  6. #26
    Sencha Premium Member
    Join Date
    Jan 2011
    Posts
    17
    Vote Rating
    0
      0  

    Default

    Can we get a workaround/override for 4.1.1 in combination with the cell model selection please?
    This bug is only fixed for the row model and not for the cell model selection.

    Thanks!

  7. #27
    Sencha Premium Member
    Join Date
    Jan 2011
    Posts
    17
    Vote Rating
    0
      0  

    Default

    Bump...

  8. #28
    Sencha Premium Member
    Join Date
    Nov 2011
    Posts
    45
    Vote Rating
    2
      0  

    Default

    It's fixed on Ext JS 4.1.3 - support only, you will need to wait for the general audience release.

  9. #29
    Sencha Premium Member
    Join Date
    Jan 2011
    Posts
    17
    Vote Rating
    0
      0  

    Default

    Hey agunescu,

    cool, thanks for the info!
    Do you have maybe a "small" override for it in 4.1.1?

  10. #30

Page 3 of 5 FirstFirst 12345 LastLast

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
  •