checkbox - Extjs 4.1 - CheckboxModel within checkcolumn in grid Fail? -


i try work checkboxmodel , checkcolumn in http://jsfiddle.net/veb7q/. found bug.
that when click checkboxmodel after click checkcolumn see no row selected when click button selected, have ?

here button selection

ext.create('ext.button', {         text: 'click me',         visible: false,         renderto: ext.getbody(),         handler: function() {             //alert('you clicked button!');             var s = grid.getselectionmodel().getselection();             ext.each(s, function (item) {                 alert(item.data.name);             });         }     }); 


follow step see bug
step 1: click checkboxmodel , see below

enter image description here

step 2: click active column , see below enter image description here

step 3: click button "click me" , see bug (no selection here? ). how fix bug. thanks

enter image description here

found it..

just add "stopselection : false" in checkcolumn xtype @trungkien

, {             xtype: 'checkcolumn',             text: 'active',             dataindex: 'active',             stopselection : false,             align: 'center',             defaulttype: 'boolean'         } 

i hope work.


Comments

Popular posts from this blog

html5 - What is breaking my page when printing? -

c# - must be a non-abstract type with a public parameterless constructor in redis -

ajax - PHP/JSON Login script (Twitter style) not setting sessions -