1

如何在 Kendo UI Grid 中使列(自动生成)不可编辑?我能想到的一种方法是使用自定义 HTML 编辑器并将其设为只读或禁用,但我希望它是开箱即用的功能?

我错过了什么,不应该是财产还是什么?

谢谢,阿维

4

2 回答 2

1

如果您正在使用内联编辑,那么这必须对您有所帮助:在架构中将该字段设置为可编辑:假。

               schema: {
                    model: {
                        id: "sr_id",
                        fields: 
                        {
                            card_number: { editable: false, type: "string" },
                            merchant: { editable: true, type: "string" }
                        }
                    }
                }
于 2013-03-22T07:16:25.043 回答
0

fields模型的选项中,制作每一列editable: false,除了您要编辑的那一列:editable: true

在网格的选项中,有editable: true.

有用。

于 2013-08-09T12:30:44.027 回答