Hello. I have a edatagrid and JSON data with nested field values like this:
[{"id":19,"idObject":{"systemId":"sbr_001","applicationAssignment":"Testgebiet 22","applicatioContact":"Stefan"}]
Now if i cklicked on an row to edit the data, the values of the field idObject.applicationAssignment not shown correct in the editor of the text field. The editor field are empty - why?
Update: My Test Solution:onDblClickRow: function(rowIndex, rowData) {
if(rowData.idObject) {
// workaround for the value [object object] problem!
var xyzEditor = $(this).edatagrid('getEditor',{index: rowIndex, field:'idObject.applicationAssignment'});
$(xyzEditor.target).val(rowData.idObject.applicationAssignment);
};
},
Is this correct sollution or is there a better way to do this?