I\'ve got a basic jqgrid implementation.
$(\'.fsJqGrid\').jqGrid({
datatype: \"local\",
height: 175,
colNames: [\'FeatureId\', \'Name\', \'\'],
Because you defined FeatureId
with the key:true
, the id of every row will be the same as the value from the FeatureId
column. If you dont need it you should remove
key:true` setting.
You don't post the full code example which you use, so I suppose you have problem in the place of the code where you to fill the data in the jqGrid. I don't understend the scenario wich you have. From where you receive the data which you want to fill in the grid? Do you receive only one row at once? Do you get the date from the server, from the local data source or from the user input? The most effective way to fill the row is to use data
parameter of the jqGrid (see this answer). Moreover jqGrid has rich possibilities to fill the grid per ajax request.
To be able to answer on your main question about editing of the data you should describe the context. Do you need that the user are able to modify the data? Then you can use inline editing, form editing or cell editing (see documentation and "Row Editing"/"Input types" and "Live Data Manipulation"/"Navigator", select row and click edit button in the navigator on the official jqGrid demo). If you want to modify the row which are changed not by the user you can use functions like setRowData.
So if you explain more what you application do and how you use jqGrid I could write you more references.