Changing rowId on jqgrid?
Asked Answered
N

1

11

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

Negativism answered 28/9, 2010 at 2:55 Comment(0)
N
30

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

Negativism answered 28/9, 2010 at 3:12 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.