DELETE

Jul 13, 2011 at 12:23 PM

Hi i have this code:

 .UpdateDefaultPager(pager =>
pager
.ShowDel(true, deleteUrl: "/SysAdmin/Delete/") ))

i want to add id from the selected row in the grid on this 
 ex: .ShowDel(true, deleteUrl: "/SysAdmin/Delete/" + id ) )) 

is that possible?

Coordinator
Jul 13, 2011 at 5:47 PM

Hi,

The default grid delete  button behavior is to send the data in POST, but it is possible with a little teaking to be changed to GET.
This will result in the delete url to be something like this: "/SysAdmin/Delete/op=del&personId=id".

Not quite sure this would be good enough for you.
If it doesnt, you can override the default delete behavior and set your own (which would simply be you creating a manual ajax request to delete the row).

Jul 13, 2011 at 6:28 PM

can you give me example on override the delete?