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
jqGrid Grouping error
03/07/2014
21:05
Avatar
aragorn2004
New Member
Members
Forum Posts: 1
Member Since:
03/07/2014
sp_UserOfflineSmall Offline

Hi, i'm newbie and i'm trying different thing on jqgrid. Now i've a problem with grouping.

When i add

                    grouping:true,

                    groupingView : {
                            groupColumnShow : [true],
                            groupText : ['<b>{0}</b>'],
                            groupCollapse : false,
                            groupOrder: ['asc'],
                            groupSummary : [false],
                            groupDataSorted : false,
                            groupField : ['TipoPersonale']
                            }

i receive an error CANNOT READ PROPERTY 'lenght' of NULL

if I remove this part of code all is OK and data are shown.

 

Someone can help me ? Thanks in advance.

 $("#tablePersonal").jqGrid({
                    datatype: 'xmlstring', datastr: data.d,
                    xmlReader: {
                        root: "results",
                        row: "myrow",
                        repeatitems: false
                    },
                    colNames: ['myID', 'Name', 'Date. Ass.','Level', 'Level/Profile','TYPE'],
                    colModel: [{ name: 'ID', index: 'ID', width: 50 },
                    { name: 'LONGNAME', index: 'DIP_LONGNAME', width: 180, align: "left" },
                    { name: 'Date_Ass', index: 'Date_Ass', width: 70, align: 'center',formatter: 'date', formatoptions: {newformat: 'd-m-Y' }},
                    { name: 'cod1', index: 'cod1', width: 55, align: "center" },
                    { name: 'level_profile', index: 'level_profile', width: 100, align: "left"},
                    { name: 'TypePersonal', index: 'TypePersonal', width: 55, align: "center" }],
                    rowNum: 30,
                    pager: '#pagerPersonal',
                    viewrecords: true,
                    height: 'auto',
                    loadonce: true,
                    caption: '',
                    
                    grouping:true,

                    groupingView : {
                            groupColumnShow : [true],
                            groupText : ['<b>{0}</b>'],
                            groupCollapse : false,
                            groupOrder: ['asc'],
                            groupSummary : [false],
                            groupDataSorted : false,
                            groupField : ['TypePersonal']
                            }

                });

08/07/2014
13:24
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello,

You have a typo error in your code. You do not have such field defined in colModel.

You have

{ name: 'TypePersonal', index: 'TypePersonal', width: 55, align: "center" }],

but you define

groupField : ['TipoPersonale']

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.

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

Currently Online:
49 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