Forum
15:11
30/03/2014
Version:4.6.0
Search type: select
After initializing the query dialog box, “dataUrl” mode Can not get the default value; But “value” mode, can get the default value.
Following three pictures:DepartmentIDã€Headship is null. Using dataurl。
dataUrl mode, click on the drop-down box before you can get to the value
Code:
colModel :[ {name:'Employeeid',index:'Employeeid',width:10,hidden:true,viewable:false,editrules:{edithidden:false},search:false}, {name:'DepartmentID',index:'DepartmentID',editable:true,editrules:{required:true}, edittype:'select', editoptions:{dataUrl:"../Common/GetDepartment.asp"}, stype:"select", searchoptions:{ dataUrl:"../Common/GetDepartment.asp",sopt:["eq","ne"],}, formoptions:{rowpos:1,colpos:1}},
{name:'Sex',index:'Sex',editable:true,editrules:{required:false,edithidden:true}, edittype:'select', editoptions:{value:"男:男;女:女"}, stype:'select',searchoptions:{value:"男:男;女:女",sopt:["eq","ne"]}, formoptions:{rowpos:3,colpos:2}},
{name:'Headship',index:'Headship',editable:true,editrules:{required:false}, edittype:'select', editoptions:{dataUrl:"../Common/GetTableFieldCode.asp?type=headship"}, stype:"select", searchoptions:{ dataUrl:"../Common/GetTableFieldCode.asp?type=headship",sopt:["eq","ne"]}, formoptions:{rowpos:4,colpos:1}},
{name:'Position',index:'Position',editable:true,editrules:{required:false},hidden:true, edittype:'select', editoptions:{dataUrl:"../Common/GetTableFieldCode.asp?type=position"}, stype:"select", searchoptions:{ dataUrl:"../Common/GetTableFieldCode.asp?type=position",sopt:["eq","ne"],searchhidden:true}, formoptions:{rowpos:4,colpos:2}},
Most Users Ever Online: 715
Currently Online:
57 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