1. #1
    Sencha User
    Join Date
    Oct 2012
    Location
    Philippines
    Posts
    14
    Vote Rating
    0
    JsNoob is on a distinguished road

      0  

    Default Grid Pagination with checkbox

    Grid Pagination with checkbox


    Hi,

    I am creating a grid w/ checkbox on each row. What I need to do is retain the checked row whenever the user paginates. is there an easy way to do is? What I have done so far is save the checked records into an array.

    Regards,
    JsNoob

  2. #2
    Sencha User
    Join Date
    Jan 2011
    Posts
    549
    Vote Rating
    54
    willigogs is a jewel in the rough willigogs is a jewel in the rough willigogs is a jewel in the rough

      0  

    Default


    Get the rows in your store beforeLoad event, then on load use the selectionModel's selectRows() method:
    http://docs.sencha.com/extjs/3.4.0/#...hod-selectRows

  3. #3
    Sencha User brittongr's Avatar
    Join Date
    Jun 2007
    Location
    Panama
    Posts
    109
    Vote Rating
    3
    brittongr is on a distinguished road

      0  

    Default


    I remember out there was a plugin to do what you need, the name was CheckBoxMemory but i couldn't find it right now.
    Greivin Britton

    My Extensions:
    Ext.ux.NumericField: Number field with support for currencySymbol, thousand separator, international...
    Ext.ux.PagerSizeSelector: A plugin that allows the change page size with just one click.
    Ext.ux.FieldAccess: A plugin to let the user know which fields are editable.

Thread Participants: 2