Hello,
First of all I want to show the code I'm using:
$(document).ready(function () {
var mydata = [
[0,”IT000″,”ITEM0″],
[1,”IT001″,”ITEM1″],
[2,”IT003″,”ITEM3″],
[3,”IT004″,”ITEM4″],
];
var grid = $(“#table”);
grid.jqGrid({
cmTemplate : {
search : true,
searchoptions : { sopt : [“cn”,”nc”,”eq”,”ne”,”bw”,”bn”,”in”,”ni”,”ew”,”en”] }
},
colModel : [
{ name: “id”, index: “id”, width: 20, sorttype: “int” }, { name: “code”, index: “code”, width: 40, sorttype: “text” },
{ name: “name”, index: “name”, width: 80, sorttype: “text” }
],
colName : [],
data : mydata,
datatype : “local”,
localReader : { cell : “”, id : “”, repeatitems : true },
height : “auto”,
search : true
});
grid.jqGrid(“filterToolbar”);
})
The problem I found is that search on client side is not working when trying to use data as an array. Aparently, the problem is that the getAccessor method receive, as expr parameter,
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top