Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想在创建网格行后将行字段设为只读。我想让它在 editMode 'row' 和 'rowedittemplate' 中都工作。我怎样才能做到这一点?
您需要在更新功能中配置列设置,并将 readOnly 设置为 true 以更新您希望不可编辑的列:
$(element).igGrid({ features: [ { name: "Updating", columnSettings: [ { columnKey: "Key", readOnly: true } ] } ] });
这是 API 文档。