Forum

November 2nd, 2014
A A A
Avatar

Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

The forums are currently locked and only available for read only access
sp_Feed Topic RSS sp_TopicIcon
Grouping now working
08/10/2010
08:54
Avatar
harryhobbes
Brisbane, QLD, Australia
Member
Members
Forum Posts: 5
Member Since:
08/10/2010
sp_UserOfflineSmall Offline

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},
});
13/10/2010
01:37
Avatar
harryhobbes
Brisbane, QLD, Australia
Member
Members
Forum Posts: 5
Member Since:
08/10/2010
sp_UserOfflineSmall Offline

No suggestions?

And apologies for the typo in the title it should read "Grouping not working"

23/10/2010
17:47
Avatar
tony
Sofia, Bulgaria
Moderator
Members

Moderators
Forum Posts: 7721
Member Since:
30/10/2007
sp_UserOfflineSmall Offline

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.

25/10/2010
03:52
Avatar
harryhobbes
Brisbane, QLD, Australia
Member
Members
Forum Posts: 5
Member Since:
08/10/2010
sp_UserOfflineSmall Offline

Tony,

Apologies, I meant to update this thread earlier. I updated to the latest dev version from GitHub and it's all working now. Regarding the error in the javascript, I think I removed a portion of my config for readability. Thanks for the reply and the great work with jqGrid.

Cheers,

Harry

Forum Timezone: Europe/Sofia

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.com

Moderators: tony: 7721, Rumen[Trirand]: 81

Administrators: admin: 66

Comments are closed.
Privacy Policy   Terms and Conditions   Contact Information