2017-09-24 7 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

関連する問題