Skip to content Skip to sidebar Skip to footer

Rowids Resetting In Jqgrid,how To Prevent It?

For some reason the rowIDs get reset once i do any any action from the pagination(increase the number of rows,move to next page etc) for e.g i have 75records in total.Im displaying

Solution 1:

Row Id will work this way because it generates dynamic Ids for your rows when your data is populated in the grid. This is the default behavior.

You can get a unique row Id if you set a Primary key. this way, you'll get the value of Primary key as row Id. Simply set key: true property of the column you want to set as primary key, in the colModel collection.

Post a Comment for "Rowids Resetting In Jqgrid,how To Prevent It?"