In a number of grids I am creating, the data is coming from the server in the form of Ids for a value e.g
1 = no
2 = yes
If I put in the editype:select and give and edit options for a select box, i.e.
colModel:[
{name:'prsnId',index:'prsnId', width:200,sortable:true,editable:true,edittype:”select”,editoptions:{value:_selMbr},editrules:{required:true}},
{name:'srvcId',index:'srvcId', width:200,sortable:true,editable:true,edittype:”select”,editoptions:{value:_selSrvc},editrules:{required:true}}
]
in this example _selMbr = {1:”Joe”,2:”Fred”,3:”Norah”}
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top