Forum
Topic RSS
19:37
18/05/2012
OfflineI 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
});
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.comModerators: tony: 7721, Rumen[Trirand]: 81
Administrators: admin: 66
Log In
Home
