Forum


20:32

07/04/2011

Trying to use it to display some calculations that I am doing in javascript and cant get it to bind to local data.
$("#results").jqGrid({
data: myData,
datatype: "local",
height: 'auto',
//rowNum: 30,
//rowList: [10,20,30],
colNames: ['Chain Ring', 'MidDrive Gear', 'MiDrive Output',
'Sprocket', 'Final Ratio', 'Wheel',
'Cadence', 'Motive', 'Gear', 'Speed'
],
colModel: [
{ name: 'ChainRing', index: 'ChainRing', sorttype: "float"},
{ name: 'Mid Drive Gear', index: 'MidDriveGear', sorttype: "float"},
{ name: 'Mid Drive Output', index: 'MidDriveOutput', sorttype: "float"},
{ name: 'Sprocket', index: 'RearSprocket', sorttype: "float"},
{ name: 'WheelCircurmfrence', index: 'ChainRing', sorttype: "float"},
{ name: 'Cadence', index: 'Cadence', sorttype: "float"},
{ name: 'Ratio', index: 'GearRatio', sorttype: "float"},
{ name: 'Motive', index: 'Motive', sorttype: "float"},
{ name: 'Gear', index: 'Gear Inch', sorttype: "float"},
{ name: 'Speed', index: 'Speed', sorttype: "float"}
],
//viewrecords: true,
//sortname: 'speed',
//scroll: true,
//grouping: true,
//groupingView: {
// groupField: ['ChainRing']
//},
caption: ""
});
What other information is needed?
Should I be using the source of funciton instead?
Most Users Ever Online: 715
Currently Online:
60 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