2014-02-27 127 views
0

剛剛發現了KendoGrid並試圖在更改另一個單元格值後更改單個列(單元格)的樣式。例如,我有一個帶有船名和船舶列的網格。假設我有一個業務規則,上面寫着:在KendoGrid中更改單元格樣式

'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

更新的鏈接:

You can try the updated fiddle examplehere

+0

它不起作用? – user603007

0

基本條件編輯模板不支持開箱即用。你有兩個選擇。

要麼使用edit事件電網的發現裏面e.containder編輯和禁用它需要的方式(如果使用劍道部件使用enable(假)方法,或添加只讀屬性如果經常輸入)。

其他選項是定義自定義編輯器,如this JsBin example中所示。