I am using jqGrid to display the database table and loading the JQGrid using DataSet from ASP.NET code behind file. Columns are also generated from code behind file at the runtime. I have two columns (PrimaryKey column[which is not auto-increment field], Text Field column) and I want to provide add functionality to both the columns using add-form but edit functionality to only one column i.e Text field column using inline editing.
This is similar to the question reported here and the answer is pretty close to what I want. I found other solutions as well but most of the solutions use data in JSON format and are loaded from Javascript.
I am having a hard time figuring out the above functionality because the data is already loaded from the database and I just wish to modify the editable property. By default I have Primary field not-editable and Text field - editable.
I would really appreciate any help.
`jQuery("#list").jqGrid({ data: mydata, colModel: [ ]//... })`
as the data is populated in the jqgrid from the code behind file & when I try to write only the last part with beforeShowForm as in your example, grid doesn't display anything.
I am using jqgrid for the first time and don't know right way to do this functionality. I have seen couple of your answers and they are really to the point but I have failed to apply those answers here. Could you please suggest some code to solve this? – Ann Jun 04 '12 at 21:16