javascript - How to de Select ExtJS component programmatically. -
i using checkbox selection model in extjs grid
selmodel: { seltype: 'checkboxmodel', }, i want grid deselect programitcally.
use case : suppose click on button time of selected cell can deselect. (there logic behind that.)
thanks help.
if want deselect programatically there option in extjs called deselect check doc here
you can write code this.
var gridselction = grid.getselection(); for(var i=0; i<gridselction.length; i++){ // multiselection if(your logic){ grid.selmodel.deselect(gridselction[i]) break; } }
Comments
Post a Comment