Forum
Topic RSS
07:39
Pete said:
I think the format should be:
editoptions: {value: “1:first,2:second”}
You have a “;” where it should be a “,”
No ";"
The editoptions value must contain a set of value:label pairs with the value separated from the label with a colon (:) and ended with(;). Whichever you use, something like the following
editoption: { value: “FE:FedEx; IN:InTime; TN:TNT” }
I repeat my question: when grid load first time ...
10:27
01/09/2008
OfflineInteresting...mine are all comma separated and they all work like a charm. Even the ones passed in using JSON.
In my case I usually set a variable and then use it in the grid:
var colTrueFalse = {"value":{"T":"True","F":"False"}};
var colTrueFalseBoolean = {"value":{"true":"True","false":"False"}};
var colTrueFalseSL = {"value":{"L":"L","S":"S"}};
$('#empControlLocs').jqGrid({
url: jsonURL,
editurl:editURL,
datatype: 'json',
height: 250,
colNames:['Dispatcher','Edit Absences','Sec/Loc','Location/Sector ID'],
colModel:[
{name:'dispatcher',index:'dispatcher', width:100, editable:true, edittype:"select",formatter:'select',editoptions:colTrueFalseBoolean},
{name:'editable',index:'editable', width:150, editable:true,edittype:"select",formatter:'select',editoptions:colTrueFalseBoolean},
{name:'sector',index:'sector', width:50, editable:true,edittype:"select",formatter:'select',editoptions:colTrueFalseSL},
{name:'locId',index:'locId', width:450, editable:true,edittype:"select",formatter:'select',editoptions:colLocations}
],
rowNum:10,
rowList:[10,20,30],
imgpath: gridimgpath,
pager: $('#empControlLocspager'),
sortname: 'locId',
sortorder: "desc",
jsonReader: {repeatitems: false},
caption: "Maintain Location Access"
});
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