Success! Looks like we've fixed this one. According to our records the fix was applied for EXTJS-4424 in a recent build.
  1. #1
    Ext JS Premium Member
    Join Date
    May 2007
    Posts
    11
    Vote Rating
    0
    Zoob is on a distinguished road

      0  

    Default Calling reconfigure on a grid with CheckBox model causes additional checkbox columns

    Calling reconfigure on a grid with CheckBox model causes additional checkbox columns


    REQUIRED INFORMATION

    Ext version tested:
    • Ext 4.0.7
    • Ext 4.1-PR1
    Browser versions tested against:
    • FF3.6
    Description:
    • Calling reconfigure on a grid with CheckBox model causes additional checkbox columns
    Steps to reproduce the problem:
    • Create a Grid with the Checkbox Selection Model
    • Call reconfigure on the grid
    • I've tested against the grid-plugin example
    The result that was expected:
    • Reconfiguration should occur while retaining the checkbox column
    The result that occurs instead:
    • An additional checkbox column is added per reconfigure call
    HELPFUL INFORMATION

    Screenshot or Video:
    Additional CSS used:
    • only default ext-all.css
    Operating System:
    • WinXP
    Last edited by mitchellsimoens; 8 Nov 2011 at 1:04 PM. Reason: Add Ext 4.1-PR1 as another version tested

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    36,633
    Vote Rating
    817
    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


    Looks like it is still happening in 4.1-PR1. Will get this reported!
    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
    Dec 2011
    Location
    Poitiers, France
    Posts
    20
    Vote Rating
    3
    youss.imzourh is on a distinguished road

      0  

    Default


    Hi,

    An alternative is to call the reconfigure method with the parameter columns :

    PHP Code:
    var columns = [
    ...
    ]

    var 
    grid Ext.create('Ext.grid.Panel', {
    ...
    columnscolumns
    ...
    });

    ...

    grid.reconfigure(storecolumns); 
    Hope it helps.

    Cheers.

Thread Participants: 2

Tags for this Thread