Forum
08:54
08/10/2010
Hi I've got jqGrid which works flawlessly normally however when I turn on grouping I get no results at all.
My setup:
- I use the xmlmap param for columns in the colModel and XML remote data
- I use repeatitems: false
- I have the latest jQuery 1.4.2 and jqGrid 3.8
I get no error in FireBug and no output although when I look at the request I'm getting XML as usual
My config is as follows:
$("#jqgrid-container-SwqkdBwfXg").jqGrid(
{
"url":"/a-valid-url",
"datatype":"xml",
"mtype":"POST",
"height":"600",
"caption":"",
"colNames":["KeyCriteria","Title","Description","Owner","Updated At","Created At","Actions"],
"colModel":
[
{
"name":"KeyCriteria",
"index":"KeyCriteria",
"xmlmap":"keycriteria",
"sortable":true,
"hidden":false,
"width":255,
"title":true,
"resizable":true
},
{
"name":"title",
"index":"title",
"xmlmap":"title",
"sortable":true,
"hidden":false,
"width":340,
"title":true,
"resizable":true
},
{"name":"description","index":"description","xmlmap":"description","sortable":true,"hidden":false,"width":680,"title":true,"resizable":true},
{"name":"Creator","index":"Creator","xmlmap":"creator","sortable":true,"hidden":false,"width":93,"title":true,"resizable":true},
{"name":"updated_at","index":"updated_at","xmlmap":"updated_at","sortable":true,"hidden":false,"width":68,"title":true,"resizable":true},
{"name":"created_at","index":"created_at","xmlmap":"created_at","sortable":true,"hidden":false,"width":68,"title":true,"resizable":true},
{"name":"Actions","sortable":false,"width":45,"xmlmap":"actions"}
],
"rownumbers":true,
"multiselect":true,
"pager":"jqgrid-container-SwqkdBwfXg-pager",
"rowNum":50,
"rowList":[10,25,50,100,500,1000],
"viewrecords":true,
"sortname":"id",
"sortorder":"asc",
"sortable":true,
"gridview":true,
"viewsortcols":[true,"horizontal",true],
"grouping":true,
"groupingView":{"groupDataSorted":true,"groupField":["KeyCriteria"]},
"xmlReader":{"repeatitems":false},
});
01:37
08/10/2010
17:47
Moderators
30/10/2007
Hello,
I could not reproduce the problem. Just tested a grouping with xml amd using xml mapping.
Also please publish you xml data too in order to reproduce the problem.
Your code has a errro at end of the settings:
...
"groupingView":{
"groupDataSorted":true,
"groupField":["KeyCriteria"]
},
"xmlReader":{"repeatitems":false}, <=====ERROR
});
Regards
Tony
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:
26 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