Making a cell in selected row non editable in kendo grid -
i have kendo grid making column non editable when grid loads using editable:false
property.
but when new record created , user can select values form combo box in grid.if particular value selected non editable field must editable.i have tried following code. nothing happens.
event_type: { validation: { customfn : function(input){ if(input.attr('name')=='event_type'){ input.attr("validationmessage", "<?php echo messageclass::setmessage("er037", "event type") ?>"); if(input.val()== "--select--" || input.val()== '') return false ; if(input.val()=="invoice"){ alert("invoice"); var grid = $("#eventgrid").data("kendogrid"); $('#event_type').attr('readonly','readonly'); } } return true; } } }
i getting alert. nothing happens more. appreciated.
Comments
Post a Comment