JqGrid edit and delete button with each row

im using jqgrid with mvc 3, I want to add an edit and delete button with every row of JqGrid, I achieved this goal with this link . But for inline editing, I want to open popups when I click the edit button.

How can I achieve this goal.

thank

0
source share
3 answers

You should simply use the new editformbutton: true option, which exists since jqGrid version 4.1.0:

formatter:'actions',
formatoptions: {
    keys: true,
    editformbutton: true
}
+5
source

Please find the collection below for editing:

 {
                    name: 'EditAction',
                    width: 60,
                    fixed: true,
                    search: false,
                    sortable: false,
                    resize: false,
                    formatter: 'actions',
                    formatoptions: {
                        keys: false,
                        editbutton: true,
                        delbutton: false,
                        editformbutton: false,
                        onSuccess: function(response) {
                            if (response.status == 200) {
                            }
                        },
                        extraparam: { oper: 'edit' },
                        url: '@Url.Action("ActionName", "Controller")'
                    }
                },
+2
source

when we used it, just the edit button worked, but the delete button did not work, when I clicked on the delete button, the error shows that the URL is not provided and how I passed the URL to delete, when I passed the delete URL, both of them didn’t work

0
source

All Articles