Results 1 to 7 of 7

Thread: Auto collapse row when table scrolls

  1. #1
    Sencha Premium User
    Join Date
    Aug 2016
    Posts
    30

    Default Auto collapse row when table scrolls

    I'm using the row-expander plug with a Ext.grid.Panel and a Ext.data.BufferedStore. The plugin works great, but I was looking for a way for rows to "auto collapse" back to their initial state when a user scrolls any expanded rows out of view.

    Thanks so much in advance.

  2. #2
    Sencha Premium User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,379
    Answers
    3997

    Default

    A start for this would be something like:

    Mitchell Simoens @LikelyMitch

    Check out my GitHub:
    https://github.com/mitchellsimoens

    Posts are my own, not any current, past or future employer's.

  3. #3
    Sencha Premium User
    Join Date
    Aug 2016
    Posts
    30

    Default

    Okay, i'll give it a shot. Thanks so much

  4. #4
    Sencha Premium User
    Join Date
    Aug 2016
    Posts
    30

    Default

    Okay, I'm not sure what's going on here, but it seems to loop infinitely, and keeps jumping back to the open row.

    I just need it to collapse when it scrolls out of view. Back to it's initial state basically.

  5. #5
    Sencha Premium User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,379
    Answers
    3997

    Default

    Sounds like the focus is staying on the row expander so when it collapses it, browser scrolls it back into view.
    Mitchell Simoens @LikelyMitch

    Check out my GitHub:
    https://github.com/mitchellsimoens

    Posts are my own, not any current, past or future employer's.

  6. #6
    Sencha Premium User
    Join Date
    Aug 2016
    Posts
    30

    Default

    Yes, I believe so.

    I've been going over your code and I do have a question. I can't seem to find a method for toggleRow anywhere in the API. Is this part if the RowExpander class?

  7. #7
    Sencha Premium User
    Join Date
    Aug 2016
    Posts
    30

    Default

    Got it. I just needed to make one fixed. See line #56


Similar Threads

  1. Grid auto scrolls when zoom < 100%
    By darthwes in forum Ext 3.x: Help & Discussion
    Replies: 3
    Last Post: 1 Apr 2014, 7:51 AM
  2. auto update by contentPanel Collapse
    By cn1h in forum Ext GWT: Discussion
    Replies: 2
    Last Post: 14 Jan 2011, 5:26 AM
  3. why ComboBox auto collapse?
    By liaoqihua in forum Ext 3.x: Help & Discussion
    Replies: 2
    Last Post: 20 Oct 2010, 5:47 AM
  4. Grid auto scrolls to top of row on mousedown
    By ledge in forum Ext 3.x: Help & Discussion
    Replies: 6
    Last Post: 21 Jan 2010, 3:04 AM
  5. getting rid of the scrolls bars on a Table
    By eugenparaschiv in forum Ext GWT: Help & Discussion (1.x)
    Replies: 0
    Last Post: 27 Aug 2008, 7: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
  •