Hi,
I try to use DataGrid Virtual Scroll View with Detail Rows, like in demo, but "datagrid-row-detail" divs are empty.
My code to load datagrid :
$('#dgstats_pdf').datagrid({
view:scrollview,
pageSize:100,
autoRowHeight:false,
url:'inc_getpdfonjson.php',
queryParams: {
clientonly: true
},
onBeforeLoad: function(param){
// some stuff here
},
detailFormatter: function(rowIndex, rowData){
console.log(rowData.compte);
return rowData.compte;
},
onLoadSuccess:function(){
// some stuff here
},
});
The "console.log(rowData.compte)" command returns the data I expect (from the json file).
But "return rowData.compte;" seems to do nothing : "datagrid-row-detail" div of each row remains empty when expanding.
If you need more code to understand, please let me know.
Thanks a lot.
JG