Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Changing rowId on jqgrid?

I have a jqgrid that contains some data, the first column of which is the numerical PK from the database.

When my delete method gets called, it passes in the rowId of the grid (which it should.) However, my back end doesn't know what data is on what row. Is there a way I can set the row ID to my PK field? Or is there a way to force it to pass in the PK value on delete instead of the row id?

Thanks

like image 303
taylonr Avatar asked Sep 28 '10 02:09

taylonr


1 Answers

I feel stupid now, the solution is to simply put key: true in my colmodel.

like image 70
taylonr Avatar answered Oct 22 '22 02:10

taylonr