Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

set CheckColumn as checked programmatically

I am using 'CheckColumn' in 'gridpanel' and also I am using a window which contain a chart. In the window, when I click on some values in the chart, I have to set the corresponding check box as checked in the grid. My question is how to set a check box as checked programmatically? I got the row id of the corresponding value that I need but I do not know how to use it to check it.

Thanks a lot!

     // in the code below, i am searching for the specific row how contain my value 
grids.getStore().each(function(rec){  
                    var rowData = rec.data; 
                    if (rowData['value']==value)
                   {  
                   var record = grids.getStore().getAt(rec.index);

                   // what i can do now? // thanks  

                   }
                });
like image 910
I3i0 Avatar asked Dec 21 '25 15:12

I3i0


1 Answers

i found what i need , just: add

rec.set('myfield', true); 

thanks

like image 130
I3i0 Avatar answered Dec 23 '25 06:12

I3i0