2017-09-24 3 views

답변

1

당신은 항상 바인드 초기화 후 edit 이벤트와 을 만들 처리 할 수 ​​있습니다. 문서가 edit 이벤트가 모두 편집을 만들 처리라고합니다, 그래서 create 이벤트, 위젯 만 edit 없다 :

function grid_edit(e) { 
    if (!e.model.isNew()) { 
    // Disable the editor of the "id" column when editing data items 
    var numeric = e.container.find("input[name=id]").data("kendoNumericTextBox"); 
    numeric.enable(false); 
    } 
} 

$("#grid").data("kendoGrid").bind("edit", grid_edit); 

Demo