1
votes

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

3
Did you manage to figure out what puts the buttons there inline? Is it JavaScript-code? And where in the JavaScript does this happen?Natrium
As Natrium suggested, it helps when you post a question if you show an example of the code you've tried that doesn't work.Adam Morris

3 Answers

2
votes
  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

0
votes

please go to http://www.trirand.com/jqgrid/jqgrid.html# check every link specially Live Data Manipulation and custom edit link ...

0
votes

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.