1. #1
    Ext JS Premium Member
    Join Date
    Apr 2011
    Posts
    56
    Vote Rating
    0
    billp is on a distinguished road

      0  

    Default Ext.ux.grid.plugin.PagingSelectionPersistence - headercheckbox question

    Ext.ux.grid.plugin.PagingSelectionPersistence - headercheckbox question


    Using this plugin: http://www.sencha.com/forum/newreply.php?p=706912 ( Ext.ux.grid.plugin.PagingSelectionPersistence ) works great, but

    the only issue I am having is that the headerCheckbox is staying selected when changing pages.
    Our store is called each time there is a sort or next page is selected.

    Everything else but this works great. I'm sure it's something in what I have setup.
    Any suggestions would be great.

    This is the code from our grid:

    PHP Code:
    Ext.define('Ext.property.widgets.TPDataGrid', {
        
    extend'Ext.grid.Panel',
        
    viewConfig: {
            
    loadMask false
        
    },
        
    plugins : [ Ext.create('Ext.shared.utils.PagingSelectionPersistence') ],
        
    initComponent: function () {
            
    this.id 'tPDataGrid';
            
    this.store Ext.create('Ext.app.stores.TPListStore');
            
    this.height 350;
            
    this.selModel Ext.create('Ext.selection.CheckboxModel', {
                
    checkOnlytrue,
                
    listeners: {
                    
    selectionchange: function () {
                        var 
    submitBtn Ext.getCmp('submitButton'),
                            
    radioEmpty Ext.isEmpty(Ext.Object.getKeys(Ext.getCmp('t_type').getValue()));
                            
                        if (
    Ext.getCmp('tPDataGrid').getPlugin('pagingSelectionPersistence').getPersistedSelection().length && !radioEmpty) {
                            
    submitBtn.setDisabled(false);
                        } else {
                            
    submitBtn.setDisabled(true);
                        }
                    }
                }
            });
            
    this.columns = [
            ...... 
    Thanks.

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    St. Louis, MO
    Posts
    33,714
    Vote Rating
    438
    mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of

      0  

    Default


    You should ask the author on the thread for help.
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    http://www.JSONPLint.com - Source to lint your JSONP!

    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!

    When posting code, please use BBCode's CODE tags.

  3. #3
    Ext JS Premium Member
    Join Date
    Apr 2011
    Posts
    56
    Vote Rating
    0
    billp is on a distinguished road

      0  

    Default


    I was going to, but didnt want to hijack it.
    I will post a commet in there asking to review my quesiton.
    Thanks.