2016-09-01 57 views
0

私はjsGridを使用しており、editButtonのonclickイベントをカスタマイズする方法が可能かどうかを知りたいと思っています。基本的に、インライン編集ではなくモーダルを表示するようなことをする。JsGridの編集イベントをカスタマイズする方法

{type: 'control', itemTemplate: function() { 
    var $result = jsGrid.fields.control.prototype.itemTemplate.apply(this, arguments); // Array of string 
    return $result; 
     }} 

EditButtonを制御するにはどうすればよいですか?ご協力いただきありがとうございます。

答えて

1

あなたはこれを試すことができます。

  editItem: function(item) { 
       var $row = this.rowByItem(item); 
       if ($row.length) { 
        console.log('$row: '+JSON.stringify($row)); // I modify this 
        this._editRow($row); 
       } 
      }, 

をごjsGridの設定で。

// I modify thisを除くすべての行は、jsGridの元のソースからデフォルトであるため、変更しないでください。

関連する問題