How do I remove jqGrid > colModel > Classes:link

Viewed 21

I should remove classes after gridComplete.

Im trying to this code but Im not sure how to remove jqGrid grammer.

Please let me know and check below this,

colModel:[  {name:'OrderDate',          width:70,   align:'center'},                    
            {name:'OrderNo',            width:70,   align:'center', classes: 'link'},   
            {name:'OrdOrdMstCd',        width:100,  align:'center', classes: 'link'},
            {name:'UserID',             hidden:true}]  
    
gridComplete: function(rowId,properties) {
        var col = $("#grid").jqGrid("getDataIDs");
        $.each(col, function(idx, rowId) {
            rowData = $("#grid").getRowData(rowId);
            if(rowData.UserID == 1) {
                $("#grid").jqGrid('setCell', rowId, "OrderNo", "", 'not-class-cell') <----
            }
        })
    }
0 Answers
Related