Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/424.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 如何在网格中选中复选标记列?_Javascript_Html_Extjs - Fatal编程技术网

Javascript 如何在网格中选中复选标记列?

Javascript 如何在网格中选中复选标记列?,javascript,html,extjs,Javascript,Html,Extjs,我在网格上有一个检查列,我需要通过编程对其进行检查 下面是如何编写check列的脚本: columns: { items:[ { itemId: 'checkColumn', xtype: 'selectallcheckcolumn', cls: 'select-all-check-column', dataIndex: 'Checked', hidea

我在网格上有一个检查列,我需要通过编程对其进行检查

下面是如何编写check列的脚本:

columns: {
    items:[
        {
            itemId: 'checkColumn',
            xtype: 'selectallcheckcolumn',
            cls: 'select-all-check-column',
            dataIndex: 'Checked',
            hideable: false
        },

以编程方式?当单元格被渲染或由某些外部脚本渲染时?使用
Set()
以编程方式在模型上设置属性?当单元格被渲染或由某些外部脚本渲染时?使用
Set()
以编程方式在模型上设置属性?当单元格被渲染或由某些外部脚本渲染时,请使用
Set()
在模型上设置属性。
var grid = Ext.ComponentQuery.query('grid[itemId=gridID]')[0];
var view = grid.getView();
var record = view.getRecord({0});
var active = record.get('active');
record.set('active', !active);