Reputation: 27
Jquery easyui I want to change customer_name when changing combo box limitid field,
here is my datagrid fields
first field with combo box : 'limitid'
th data-options="field:'limitid',
width:250,sortable:'true',
formatter:limitidFormatter,
editor:{
type:'combobox',
options:{
valueField:'limitid',
textField:'name',
data:limitidlist,
required:true
}
}">Limit ID</th>
second field with : customer name
th data-options="field:'customer_name',
sortable:'true',
width:250">
Customer Name'/th>'
I want to know how to trigger onchange function and fill customer name field
Upvotes: 0
Views: 8883
Reputation: 36531
use onselect function of combobox ...
Try this..
editor:{
type:'combobox',
options:{
valueField:'limitid',
textField:'name',
data:limitidlist,
required:true
},
onSelect:function(record){
console.log(record); //this is called whn user select the combobox
//do your stuff here///
}
}
Upvotes: 0