Results 1 to 3 of 3

Thread: Adding records to grid, but after 40 records it doesn't render

  1. #1
    Ext JS Premium Member
    Join Date
    Dec 2010
    Posts
    8

    Default Answered: Adding records to grid, but after 40 records it doesn't render

    I am still working in a extjs 3 to 6 migration and i faced another problem.

    We used a grid to add records as the records of an order.

    When the user adds a record, the grid store is fillet with the new data, and the grid renders, we scroll the grid to the new record, to the end of the grid. It worked in extjs3 like a charm.

    But now the users said, if they added more than 40 rows id doesn't scroll and they can't find the new record. If they save the order is saved succesfully.

    I tested and it is a rendering problem. If I add the 41th record the grid doesn't changed until i scrolled up and down with the mouse. After that the grid looks as it supposed to be.

    Where can i start to find the root of this problem? Why it is this magical 40 number?

  2. It's buffered rendering. Only the visible records (and a few above and below the visible zone) are rendered.

    You can still ask the grid to scroll to a record using https://docs.sencha.com/extjs/6.6.0/...-ensureVisible

  3. #2
    Sencha User Animal's Avatar
    Join Date
    Mar 2007
    Location
    Bédoin/Nottingham
    Posts
    30,892
    Answers
    41

    Default

    It's buffered rendering. Only the visible records (and a few above and below the visible zone) are rendered.

    You can still ask the grid to scroll to a record using https://docs.sencha.com/extjs/6.6.0/...-ensureVisible

  4. #3
    Ext JS Premium Member
    Join Date
    Dec 2010
    Posts
    8

    Default

    Thanks, it seems like working!

Similar Threads

  1. Replies: 3
    Last Post: 1 Feb 2018, 1:40 AM
  2. Replies: 2
    Last Post: 27 Aug 2015, 6:14 AM
  3. Replies: 3
    Last Post: 11 Sep 2014, 10:24 AM
  4. adding new records or modifying records in store
    By sajan in forum Ext Designer: Help & Discussion
    Replies: 2
    Last Post: 2 Sep 2011, 2:12 PM
  5. Replies: 2
    Last Post: 6 Aug 2010, 10:43 AM

Posting Permissions

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