Results 1 to 5 of 5

Thread: Checkbox grid does not remember selection with pruneRemoved=false

  1. #1
    Sencha User
    Join Date
    Mar 2017
    Posts
    11

    Default Checkbox grid does not remember selection with pruneRemoved=false

    I have Used BufferedStore and CheckboxSelectionModel.
    Steps to Reproduce:
    1) Create a buffered store with checkbox selection model and pruneRemoved should be false. This store will be used in a grid
    2) The Data for this grid should be large enough for pruning to work on scrolling
    3) Now check the first entry or select all checkbox ie header checkbox
    4) Now using scroll-bar and mouse, scroll quickly up and down in a way that pruning occurs and the first record gets removed and header checkbox selection get removed.
    5) Now go back to first entry/row, the checkbox will get removed.

    i am using extjs 4.1

    Until this issue is fixed, can you please provide the workaround.

    Thanks

  2. #2
    Sencha User
    Join Date
    Feb 2013
    Location
    California
    Posts
    11,985
    Answers
    506

    Default

    Support for Ext JS 4 ended on December 31st, so I don't see this getting fixed. Have you tested against newer versions of 4.x to see if perhaps the issue is resolved?

  3. #3
    Sencha Premium User
    Join Date
    Mar 2015
    Posts
    40

    Default

    I've been able to reproduce the issue on 6.2.1 version, see the https://fiddle.sencha.com/#fiddle/2104

  4. #4
    Sencha User
    Join Date
    Feb 2013
    Location
    California
    Posts
    11,985
    Answers
    506

    Default

    I believe that this is expected without unique keys.
    Also, when previously pruned pages are returned to the cache, the records objects in the page will be new instances, and will not match the instances in the selection model's collection. For this reason, you MUST ensure that the Model definition's idProperty references a unique key because in this situation, records in the Store have their IDs compared to records in the SelectionModel in order to re-select a record which is scrolled back into view.
    http://docs.sencha.com/extjs/6.2.1/c...g-pruneRemoved

  5. #5
    Sencha Premium User
    Join Date
    Mar 2015
    Posts
    40

    Default

    As I can see from the following GET request reply
    https://www.sencha.com/forum/topics-...tart=0&limit=2
    threadid is unique and immutable.

Similar Threads

  1. Replies: 8
    Last Post: 2 Feb 2015, 3:52 AM
  2. grid remember selection
    By pex in forum Ext 1.x: Help & Discussion
    Replies: 11
    Last Post: 22 Feb 2011, 9:46 AM
  3. Making grid remember drop down combobox selection states
    By lexusgs430 in forum Ext 3.x: Help & Discussion
    Replies: 2
    Last Post: 18 Aug 2010, 10:45 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
  •