javascript - set CheckColumn as checked programmatically -
i using 'checkcolumn' in 'gridpanel' , using window contain chart. in window, when click on values in chart, have set corresponding check box checked in grid. question how set check box checked programmatically? got row id of corresponding value need not know how use check it.
thanks lot!
// in code below, searching specific row how contain value grids.getstore().each(function(rec){ var rowdata = rec.data; if (rowdata['value']==value) { var record = grids.getstore().getat(rec.index); // can now? // } });
i found need , just: add
rec.set('myfield', true);
thanks
Comments
Post a Comment