How to populate data in combobox or select box in datagrid using JSON. please help i cannot find any tutorial, i tried experimenting but to no avail. any help would be appreciated thanks again
var jsonko = {data:[
{rows:[
{ id:“DataGrid001-0”,data:[“1”,“two”] },
{ id:“DataGrid001-1”,data:[“1”,“two”] },
{ id:“DataGrid001-2”,data:[“1”,“two”] }
]
}
]
}
mygrid.parse(jsonko,“json”);
this works for textbox and checkbox
it i just dont know what to feed combobox or select box using json object, i tried feeding it with json array like :
var jsonko = {data:[
{rows:[
{ id:“DataGrid001-0”,data:[{“a”,“b”,“c”}]},
{ id:“DataGrid001-1”,data:[{“a”,“b”,“c”}]},
{ id:“DataGrid001-2”,data:[{“a”,“b”,“c”}]} ]
}
]
}
mygrid.parse(jsonko,“json”);
and it cause me error, json structure is correct but dhtmlxgrid does not read it.