2013-04-09 96 views
3

我在'gridpanel'中使用'CheckColumn',並且我正在使用包含圖表的窗口。在窗口中,當我單擊圖表中的某些值時,必須在網格中選中相應的複選框。我的問題是如何設置複選框爲編程檢查?我得到了我需要的相應值的行ID,但我不知道如何使用它來檢查它。將CheckColumn設置爲以編程方式檢查

非常感謝!

 // 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 

        } 
       }); 
+0

我在哪裏可以找到,我可以getStore使用()方法?任何人都可以幫助我呢?謝謝。 – I3i0 2013-04-09 10:55:26

+0

我找到了我需要的,只是:add rec.set('myfield',true); 謝謝 – I3i0 2013-04-09 12:23:13

回答

1

,我發現我所需要的,只是:添加

rec.set('myfield', true); 

感謝

相關問題