Reputation: 685
I wanna use jqGrid inline(row) edit, but how can I put "Edit", "Cancel", "Save"and "Delete" buttons besides every row.
There's a example in officaill website about how to put "Edit", "Cancel" and "Save" buttons for inline(row) edit, I tried to put delete button, but it doesn't work. How can I do it? thx
Upvotes: 1
Views: 10714
Reputation: 3917
jQuery("#grid").jqGrid({
....
colNames:[...,'Actions'],
....
colModel:[ .... , {
name: "actions",
classes:'jg_actions',
formatter: "actions",
editable: false,
sortable: false,
resizable: false,
fixed: true,
width:60,
formatoptions: {keys: true, delbutton:true}}
...
This will put inline edit buttons at the end of each row
Upvotes: 2
Reputation: 8545
Can you show the code that didn't work?
The function to delete a row is delGridRow - it has grid in the name, unlike editRow, saveRow, restoreRow.
Upvotes: 0
Reputation:
please go to http://www.trirand.com/jqgrid/jqgrid.html# check every link specially Live Data Manipulation and custom edit link ...
Upvotes: 0