jqGrid dynamic column binding
Try this in document.ready: $.ajax( { type: “POST”, url: “SomeUrl/GetColumnsAndData”, data: “”, dataType: “json”, success: function(result) { colD = result.colData; colN = result.colNames; colM = result.colModel; jQuery(“#list”).jqGrid({ jsonReader : { cell: “”, id: “0” }, url: ‘SomeUrl/Getdata’, datatype: ‘jsonstring’, mtype: ‘POST’, datastr : colD, colNames:colN, colModel :colM, pager: jQuery(‘#pager’), rowNum: 5, rowList: [5, 10, 20, … Read more