I’m trying to intercept the cellSubmit for a specific cell in jqGrid. I would like to override it in such a way that It allows me to handle my own submit using custom code.
But I only want to do this on a specific cell. The rest of the cells I would like to allow it to submit through jqGrids build in submit mechanisms. Is this possible? I’ve been going circles trying to find a solution.
I’m trying to intercept the cellSubmit for a specific cell in jqGrid. I would
Share
You can implement your requirements in different way. If you just need to send custom data or custom serialized data in some cases it would be enough to use
serializeCellDatacallback. ProbablybeforeSaveCell,beforeSubmitCellorafterSaveCellcan be also helpful.Alternatively you can “subclass”
saveCellfunction (see the answer, this one or another one as examples). The corresponding code could be like the following