Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/extjs/3.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

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/actionscript-3/6.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 通过ExtJs添加checkcolumn_Javascript_Extjs - Fatal编程技术网

Javascript 通过ExtJs添加checkcolumn

Javascript 通过ExtJs添加checkcolumn,javascript,extjs,Javascript,Extjs,我有一个选项卡面板,希望在一个选项卡中添加GridPanel。 在这个网格面板中,我有一些列,其中一个列将包含复选框。但我不能补充这一点。 我会这样做的 xtype: 'checkcolumn', header: '', dataIndex: 'indoor', width: 50 在FireBug中,你能得到这个吗 l is not a constructor ...ng(this.enableUrlEncode)?this

我有一个选项卡面板,希望在一个选项卡中添加
GridPanel

在这个网格面板中,我有一些列,其中一个列将包含复选框。但我不能补充这一点。 我会这样做的

        xtype: 'checkcolumn',
        header: '',
        dataIndex: 'indoor',
        width: 50
在FireBug中,你能得到这个吗

l is not a constructor


...ng(this.enableUrlEncode)?this.enableUrlEncode:"data"]=Ext.encode(h);k.params=l}e...

ext-al...9641744 (line 1)
我做错了什么?

试试这个

    xtype: 'checkboxfield',
    header: '',
    dataIndex: 'indoor',
    width: 50

没有名为
checkcolumn
的类型,您可以更改为
checkboxfield
。希望它能帮助您:)

一开始就设置Ext ux路径。 或者包含脚本中Ext ux文件夹中的“CheckColumn.js”。它起作用了


是的,您需要在页面中包含该文件。只要下载它并把它放在像这样的地方

<script src="/Libraries/Ext/ux/checkcolumn.js" type="text/javascript"></script>


在本例中,一切正常。您需要使用
{name:'indior',键入:'bool'}
创建数据存储,并创建列模型
{xtype:'checkcolumn',header:'indior',dataIndex:'indior'
字段:[
{name:'indior',type:'bool'},
{name:'kad_name',type:'string'},
{name:'kad_id',type:'integer'}
]
我真的需要在应用程序中包含这个插件,但如何做到这一点?看起来像JSON。用
{}
包装它。