Forum

July 12th, 2025
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
Populating Column Dynamically
18/05/2012
19:37
Avatar
lfcmendes
Member
Members
Forum Posts: 3
Member Since:
18/05/2012
sp_UserOfflineSmall Offline

I have the following code below. The data gets populated dynamically for the 'ClientID' no problems, the data for the 'State' I need to be the same for all rows based on the selected value from the dropdown list. The value I am getting for that column on all rows is 'undefined', but if I alert($('#select_service').val()) I do get the value I want. Help?

$("#gridtbl").jqGrid({

datatype: 'json',

colNames: 'Client ID',

'State'],

colModel: [

{ name: 'ClientID', index: 'ClientID', width: 90 },

{ name: 'State', viewable: true, formatter: $('#select_service').val()}

],

rowNum: 10,

rowList: [10, 20, 30],

pager: '#pggrid',

sortname: 'ClientId',

viewrecords: true,

sortorder: "desc",

jsonReader: {

repeatitems: false, id: "Id", root: function (obj) { return obj; }

},

caption: "Worklist",

height: '100%',

width: '900',

loadonce: true,

shrinkToFit: false,

gridComplete: function () { disableSelection(document.getElementById("gridtbl")); },

hidegrid: false

});

18/05/2012
19:50
Avatar
lfcmendes
Member
Members
Forum Posts: 3
Member Since:
18/05/2012
sp_UserOfflineSmall Offline

I got it using formatter. Thanks anyways for reading it Laugh

Forum Timezone: Europe/Sofia

Most Users Ever Online: 994

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