This question may have been asked many times, but I would like to know if it possible to dynamically change the cell value of a jqgrid?
I basically have a grid that is that is being loaded with data via a JSon string. On some rows for a particular column that value may be "null". So knowing which row id upfront is one issue and then being able to change that "null" to something else. eg. change "null" to "Not Applicable".
All help would be appreciated. Thanks.
I don't think that changing the value is what you really need in this situation. You should rather create your own custom formatter. It might look more less like this:
This is just very basic, sample implementation but it should give you an idea.
I would recommend you to use
beforeProcessing
callback which is simple to use and which is very powerful. For example if you get the data from the server in the standard JSON formatyou can do something like the following
In the way you can modify the data returned from the server before the data will be processed by the jqGrid.