I have a panel with layout: border
, that look like http://jsfiddle.net/rpcbX/
When i click add
button on west region I with removeAll
from center region and add something again, in this example i add and remove gridpanel.
But My gridpanel has CheckboxModel
. And that can't remove after i add gridpanel again.
Follow bellow step u will see bug.
1. Run my app and click add
button
2. Click checkall
butoon on gridpanel
3. Click add
button again
Now u will see the bug, the selection was selected and u can't click checkall
button to working. Look like
I think when i click add button then center region will has a new gridpanel (new state)
How to fix that thank
p/s: i was test that on extjs4.2.1 and the result's worse. i can't click checkbox on row ( i think i was click that but graphic not change)
Here is my code i using with add
button
text: 'add',
handler: function() {
panel.down('panel[region="center"]').removeAll();
var grid = new Example();
panel.down('panel[region="center"]').add(grid);
}