1

我想在创建网格行后将行字段设为只读。我想让它在 editMode 'row' 和 'rowedittemplate' 中都工作。我怎样才能做到这一点?

4

1 回答 1

1

您需要在更新功能中配置列设置,并将 readOnly 设置为 true 以更新您希望不可编辑的列:

$(element).igGrid({
    features: [
        {
            name: "Updating",
            columnSettings: [
                { columnKey: "Key", readOnly: true }
            ]
        }
    ]
});

这是 API 文档。

于 2014-09-29T12:50:02.497 回答