I added a combo box inside a grid like this
<th data-options="field:'job_type_id',width:10,
formatter:function(value,row){
return row.job_type;
},
editor:{
type:'combobox',
options:{
valueField:'job_type_id',
textField:'job_type',
method:'get',
url:'pages/job_types.json',
required:true
}
}">Job Type
</th>
The insert and update work normally in the database but when I refresh the page all the combo box text values disappear !!
Here are the json data
[{
"job_type_id":1,
"job_type":"Stat"
},{
"job_type_id":2,
"job_type":"Today"
},{
"job_type_id":3,
"job_type":"Time"
}
]
The formatter function is correct so what is the problem ? please advise.