Setting the content-type of requests performed by jQuery jqGrid

How you can find in the code of grid.base.js the $.ajax call filling the grid contain looks like following: $.ajax($.extend({ url: ts.p.url, type: ts.p.mtype, dataType: dt, data: $.isFunction(ts.p.serializeGridData) ? ts.p.serializeGridData.call(ts, ts.p.postData) : ts.p.postData, complete: function (req, st) { … } … }, $.jgrid.ajaxOptions, ts.p.ajaxGridOptions)); So you can use ajaxGridOptions option of jqGrid to set or … Read more

jqgrid EditActionIconsColumn Events

The formatter:’actions’ is not yet good documented. The current version of jqGrid 3.8.2 support some options which you need. In lines 394-466 of the jquery.fmatter.js of the current version you can see more. What you need are onEdit, afterSave (on “Submit”) and delOptions.onclickSubmit parameters. To tell the truth I didn’t use the ‘actions’ formatter before … Read more

how to persist current row in jqgrid

I combined the code from the previous answer about persisting jqGrid column preferences with the code of from another answer where I suggested the code which implemented persistent selection of rows. It’s important to mention, that in case of multiselect:true it will be used the array of ids of selected rows which contains all selected … Read more

Adding a CSS class to a column

Probably you need to use classes property for the corresponding column. I am not sure that it’s what you need because you wrote about FormElement class existing in form. In the case you have to use beforeShowForm callback of the form editing for example to add class to the input field of the corresponding field … Read more