Dojo 带选择字段的dgrid

Dojo 带选择字段的dgrid,dojo,dgrid,Dojo,Dgrid,我在网上到处寻找这个没有答案的简单问题! 如何将select输入字段嵌入dgrid,如以下示例所示: 假设我们有这个专栏: editor({ label: "name", autoSave:true, field: "f_name", className: 'style4' }, "text", "dbl

我在网上到处寻找这个没有答案的简单问题! 如何将select输入字段嵌入dgrid,如以下示例所示: 假设我们有这个专栏:

editor({ 
                    label: "name", 
                    autoSave:true, 
                    field: "f_name", 
                    className: 'style4' 
            }, "text", "dblclick") 

试着这样做:

"dgrid.editor({
                    field: 'state',
                    editorArgs: {store: stateStore, style: 'width:120px;', maxHeight: -1}
                }, dijit.form.Select)"

下面是一个示例:

尝试以下方法:

"dgrid.editor({
                    field: 'state',
                    editorArgs: {store: stateStore, style: 'width:120px;', maxHeight: -1}
                }, dijit.form.Select)"

以下是示例:

基于frederic答案的答案:

editor({
    label: "subject",
    field: "subject",
    editorArgs: {
        style: "width:75px;",
        options: [
            {value: "true", label: "true"},
            {value: "false", label: "false"}
        ]
    }
}, Select, "dblclick")

答案基于frederic的答案:

editor({
    label: "subject",
    field: "subject",
    editorArgs: {
        style: "width:75px;",
        options: [
            {value: "true", label: "true"},
            {value: "false", label: "false"}
        ]
    }
}, Select, "dblclick")

非常感谢,我在链接上的另一个测试文件中找到了答案。我想知道为什么这个代码在网上很难找到?我一直努力想找到答案,直到你帮了我。再次感谢Hanks,我在链接上的另一个测试文件中找到了答案。我想知道为什么这个代码在网上很难找到?我一直努力想找到答案,直到你帮了我。再次感谢