刚刚发现了KendoGrid,并在更改另一个cellvalue后尝试更改单个列(单元格)的样式。例如,我有一个带有shipname和shipcity列的网格。假设我有一个业务规则说:
'Make shipcity cell value disabled when the shipname on the same row has the same value'
我发现这个样本使用了我可能使用的模糊事件,这是实现这条规则的好方法吗?
也很高兴知道您对asp.net mvc集成的看法。
jsfiddle链接:http://jsfiddle.net/dingen2010/begjT/1/
答案 0 :(得分:0)
更新了链接:
You can try the updated fiddle example
here
答案 1 :(得分:0)
基本上不支持开箱即用的条件编辑器模板。你有两个选择。
使用Grid的 edit 事件找到 e.containder 中的编辑器,并按照需要的方式禁用它(如果使用Kendo小部件)使用enable(false)方法,或者在常规输入时添加readonly属性。
其他选项是定义自定义编辑器,如this JsBin example中所示。