1. #1
    Sencha User
    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
    Gainesville, FL
    Posts
    35,704
    Vote Rating
    751
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    You should ask the author on the thread for help.
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    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 in print!

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

  3. #3
    Sencha User
    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.

Thread Participants: 1

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar