Forum
23:18
14/05/2013
This happens for me when copying the example directly, with the exception of using local data.
// url : 'localset.php',
datatype : "local",
height : 255,
width : 600,
colNames : [ 'Index', 'Name', 'Code' ],
colModel : [ {
name : 'item_id',
index : 'item_id',
width : 65,
sorttype : 'integer',
searchoptions : {
sopt : [ 'eq', 'ne', 'le', 'lt', 'gt', 'ge' ]
}
}, {
name : 'item',
index : 'item',
width : 150,
sorttype : 'string',
searchoptions : {
sopt : [ 'eq', 'bw', 'bn', 'cn', 'nc', 'ew', 'en' ]
}
}, {
name : 'item_cd',
index : 'item_cd',
width : 100
} ],
rowNum : 50,
rowTotal : 200,
rowList : [ 20, 30, 50 ],
loadonce : true,
mtype : "GET",
rownumbers : true,
rownumWidth : 40,
gridview : true,
pager : '#pager451',
sortname : 'item_id',
viewrecords : true,
sortorder : "asc",
caption : "Loading data from server at once"
});
$("#list451").jqGrid('filterToolbar', {
searchOperators : true
});
var mydata2 = [ {item_id: "1",item:"a",item_cd:"3"}
];
for(var i=0;i<=mydata2.length;i++)
$("#list451").jqGrid('addRowData',i+1,mydata2[i]);
15:54
Moderators
30/10/2007
Hello,
Thanks. Fixed in GitHub.
Regards
For professional UI suites for Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.
Most Users Ever Online: 715
Currently Online:
46 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
OlegK: 1255
markw65: 179
kobruleht: 144
phicarre: 132
YamilBracho: 124
Renso: 118
Member Stats:
Guest Posters: 447
Members: 11373
Moderators: 2
Admins: 1
Forum Stats:
Groups: 1
Forums: 8
Topics: 10592
Posts: 31289
Newest Members:
, razia, Prankie, psky, praveen neelam, greg.valainis@pa-tech.comModerators: tony: 7721, Rumen[Trirand]: 81
Administrators: admin: 66