I create my datatable with the columns and rows. My last column is always the Actions column where I have HTML tag < a href >. Each row can EDIT a form but there are different IDs to edit the form.
Would be nice to know if this is possible so every row has its menu with its links. Maybe onRight click would be possible to build the menu of the row.
on:{
onBeforeShow:function(){
var context = this.getContext();
var grid = context.obj;
var itemId = context.id;
var sourceItem = grid.getItem(itemId);
var links = $(sourceItem.actions).toArray();
// I get the links of the actions column
that = this;
this.clearAll();
$.each(links, function(index, item){
// for each link i added in the menu
that.add({ value: $(item).attr('title'), href: $(item).attr('href') });
});
}
}