13 1.1.16 Failed
14 1.1.17 Failed
15 1.1.18 Failed
16 1.1.19 Passed
2 1.1.2 Failed
17 1.1.20 Failed
18 1.1.21 Passed
19 1.1.22 Passed
I have 2 queries.
1. I have sorting problem in above jqgrid table. While I sort the 3rd column which is a text, it's not sorting properly. the sort is based on the 2nd field which is also not proper.
2. How to change the color if the value is "Failed".
$("#grid").jqGrid({
datastr: mydata,
datatype: 'jsonstring',
width: 800,
colNames:['Slno','Item','Result', 'Desc'],
colModel:[
{name:'slno', index:'slno', key: true, width:50, sorttype: 'int'},
{name:'item', index:'item', width:50, sortable: false},
{name:'result', index:'item', width:30, sorttype: 'text'},
{name:'desc', index:'desc', width:100}
],
pager: '#pager',
viewrecords: true,
sortorder: "asc",
caption:"jqGrid Example",
jsonReader: {
root: "rows",
repeatitems: false,
id: "0"
},
rowNum: 30
});