Forum


04:42

29/06/2010

So why is it that everytime I need to do something in jqGrid it is like jumping through fire hoops. Today, I am trying to get jqGrid to do some simple group (examples always work) and I have taken the code almost verbatim from examples and of course they dont work. No matter what I do, it will not group the data. This is not productive use of my time (yesterday I had to spend some 8hr trying to get JSON data to display)
Today, I am simply trying to make some very simple sample data group and no dice. This does bode well for my future tasks with this tool, cant even get SIMPLE stuff to work.
mse
11:20

10/08/2009

Do you use 3.8 beta version? Do you loaded the last version from http://github.com/tonytomov/jq.....d/tree/dev ?
You should post code example which has problems.
About the documentation and examples. On the main page //. Do you write allways documentation and create more code examples for the beta versions of your program? Then you can wait a little till 3.8 will be rleased and the documentation will be changed to 3.8.
Regards
Oleg
15:07

29/06/2010

Here is my current code (taken from a demo) trying to get a simple grouped grid to display. The grid displays but there is no grouping.
$("#masterList").jqGrid({
url: "sample.json",
datatype: "json",
colNames: ['Inv','Date', 'Client', 'Amount','Tax','Total','Notes'],
colModel:[
{name:'id',index:'id', width:60, editable:true, sorttype:'int',align:"center"},
{name:'invdate',index:'invdate', width:90, sorttype:'date', formatter:'date', datefmt:'d/m/Y',align:"center"},
{name:'name',index:'name', width:100,summary:'count',summaryTpl:'({0}) total'},
{name:'amount',index:'amount', width:80, align:"right", sorttype:'number',formatter:'currency',summaryType:'sum'},
{name:'tax',index:'tax', width:80, align:"right",sorttype:'number',formatter:'currency',summaryType:'sum'},
{name:'total',index:'total', width:80,align:"right",sorttype:'number',formatter:'currency',summaryType:'sum'},
{name:'note',index:'note', width:120, sortable:false,editable:true}
],
rowNum: 10,
forceFit: true,
rowList: [5,10,20,30],
loadonce: true,
height: 'auto',
width: 640,
pager: '#masterPager',
sortname: 'name',
viewrecords: true,
sortorder: "asc",
altRows: true,
altclass: "ui-table-altrow",
grouping: true,
groupingView: {
groupField: ['name']
groupColumnShow: [true],
groupText: ['<b>{0}</b>'],
groupCollapse: true,
groupOrder: ['asc'],
groupSummary: [true],
showSummaryOnHide: true,
groupDataSorted: true
},
});
$("#masterList").jqGrid('navGrid','#masterPager',{add:false,edit:false,del:false});
mse
19:11

Moderators
30/10/2007

Hello,
It seems like you forgot to include the new module grid.grouping.js in the head section
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.
19:40

29/06/2010

19:53

29/06/2010

20:31

29/06/2010

OK, I am deep into day two trying to get some simple grouping working and it is really getting frustrating. My jqGrid setup code looks IDENTICAL to that from the demos and I have included the "grid.group.js" as suggested by Tony and I am still getting nowhere fast.
Do you have ANY other suggestions? I am at a complete loss here? I am using the following script calls (as per the documentation)
<script src="lib/i18n/grid.locale-en.js" type="text/javascript"></script>
<script src="lib/jquery.jqGrid.min.js" type="text/javascript"></script>
<script src="lib/js/grid.group.js" type="text/javascript"></script>
Do I need to include ALL the .js libraries?
mse
14:19

Moderators
30/10/2007

Hello,
It is a big problem with this.
Please do not mix min file from 3.7 version with the file from 3.8.
Moreover the file is named grid.grouping.js and not grid.group.js as you write.
Please download the 3.8 and use the js dir for your development installation.
Please refer to Documentation here:
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:
181 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