Kendo ui 设置只读字段仅限第一行(剑道UI)
我想设置只读字段,但只设置网格上的第一行。我该怎么做Kendo ui 设置只读字段仅限第一行(剑道UI),kendo-ui,Kendo Ui,我想设置只读字段,但只设置网格上的第一行。我该怎么做 欢迎提出任何建议 您可以使用编辑功能,如 edit: function(e) { //add your custom logic here as if condition //as for this example it just disable the one with id 1 //or maybe ada a new attribute like isEditable = boolean upon
欢迎提出任何建议 您可以使用编辑功能,如
edit: function(e) {
//add your custom logic here as if condition
//as for this example it just disable the one with id 1
//or maybe ada a new attribute like isEditable = boolean upon datasource.parse then check it
if (e.model.id == 1) {
//revert edited cell back to `read` mode
this.closeCell();
}
}
嗯,这并不是完全阻止打开,我想它只是在打开后立即关闭。但这是可行的选择,因为我甚至看不到变化。工作示例,这实际上是在