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
Question on Footer Details
03/06/2011
14:39
Avatar
qpirate
New Member
Members
Forum Posts: 2
Member Since:
03/06/2011
sp_UserOfflineSmall Offline

Hi guys im new to jqGrid and just have a quick question about the footer

i have the following table

UOM Type Matrix Quantity Cost_Rate Value

Repetitions 0.00 0.00 0.00 0.00

100% 0.00 0.00 0.00 0.00

XTranslated 0.00 0.00 0.00 0.00

95-99% 0.00 0.00 0.00 0.00

85-94% 0.00 0.00 0.00 0.00

75-84% 0.00 0.00 0.00 0.00

50-74% 0.00 0.00 0.00 0.00

<=50% 0.00 1111.00 0.00 0.00

Totals: 1111.00 0.00 0.00

with the following options

var opts = { autowidth: true, height: 'auto', viewrecords: true, sortorder: "desc", multiselect: false, caption: "Quantity Split", colNames: ['UOM Type', 'Matrix', 'Quantity', 'Cost Rate', 'Value'], colModel: [ { name: 'UOM_Type', align: 'left', editable: false, footervalue: 'Hi' }, { name: 'Matrix', align: 'left', editable: false }, { name: 'Quantity', align: "right", formatter: 'number', editable: true }, { name: 'Cost_Rate', align: "right", formatter: 'number', editable: true }, { name: 'Value', align: "right", formatter: 'number', editable: true } ], altRows: true, footerrow: true, userDataOnFooter: true };

but when i call the function

var y = $("#dialog-QS-table").jqGrid('footerData'); y['UOM_Type'] = "HI"; $("#dialog-QS-table").jqGrid('footerData', y);

it seems to throw an error saying "TypeError Object doesnt support property or method toLowerCase" the grid itself is created but the footer is blank can anyone help please.

09/06/2011
14:52
Avatar
qpirate
New Member
Members
Forum Posts: 2
Member Since:
03/06/2011
sp_UserOfflineSmall Offline

i eventually found the problem eventually

the problem was 

$("#dialog-QS-table").jqGrid('footerData', y);

should have been 

$("#dialog-QS-table").jqGrid('footerData','set', y);

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

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