jqGrid rowid naming conflict during save -


I need some help with jqGrid. I have a table called the primary key column 'id' It seems that with the Jackgread Conflicts are named, when AJAX posts to save inline editing data. Queued used as a unique identifier has also been given the name 'id', which has jqGrid

Is it possible to do something else with the default Rhoaded variable name, Like '_id' to avoid naming controversy? Am i missing something

There are different ways to solve your problem.

You can not change the ID name used in jqGrid, but you can change the name of any parameter of AJAX requests. For example, you can use jqGrid's prmNames: {id: "_ id"} option.

If you have a column in the table that has a primary key and can be used to identify the grid line, you can set key: true in the column definition . As a result, the column with the key: true will be used by jqGrid instead of an additional id , except this option can also be used to reduce the size of the data (See example).


Comments