Skip to content Skip to sidebar Skip to footer

How To Customize Edit Event In Jsgrid

I'm using jsGrid and want to know if it's possible how to customize onclick event of editButton. Basically, doing something like displaying modal instead of inline editing. I know

Solution 1:

You can try this:

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

at your jsGrid config.

All lines except line // I modify this are default from original source of jsGrid, so dont change them.

Post a Comment for "How To Customize Edit Event In Jsgrid"