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
Not binding to local data
15/11/2011
20:32
Avatar
David.Sullivan
Dallas, TX
Member
Members
Forum Posts: 3
Member Since:
07/04/2011
sp_UserOfflineSmall Offline

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? 

http://jsbin.com/oquxuk/37/edit#javascript,live

Forum Timezone: Europe/Sofia

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

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

Administrators: admin: 66

Comments are closed.
Privacy Policy   Terms and Conditions   Contact Information