hii..
i'ved try this but not working.
inline edit, i have 2 column editor, partname (combobox) and quantity(numberbox).
quantity will show the last quantity of selected partname.
so, actualy it's not a editor. but i dont know how to do that. Thats why i try with editor (numberbox) .
but not working.
please help me, there must be something wrong in mycode below.
function tagData(){
var row = $('#dg').datagrid('getSelected');
var idd;
if (row){
$('#dlgtag').dialog('open').dialog('setTitle','Set Supplier');
$(function(){
$('#dlgt').edatagrid({
onEdit:function(index,row){ idd=index;},
onAdd:function(index,row){idd=index;},
url: 'get_data1.php?id='+row.idfbstockopname,
columns:[[
{field:'name_part',title:'Part Name',width:200,editor:{type:'combobox',options:
{url:'part.php',valueField:'id_part',textField:'name_part',required:true,
onChange:function(value){
var ed = $('#dlgt').edatagrid('getEditor',{index:idd,field:'lastqty_fbstockopname_detil'});
$(ed.target).numberbox('setValue',value);},
}}},
{field:'lastqty_fbstockopname_detil',title:'Quantity',align:'left',width:100,editor:{type:'numberbox',}
}}
]],
});
});}
}
best regards