I get the following error when exporting a grid with nested grids.
Uncaught TypeError: Cannot call method ‘toString’ of undefined
Any ideas? Is there a problem exporting nested grids?
$(“#exportBtnId”).click(function () {
$(“#jqxgrid”).jqxGrid(‘exportdata’, ‘xls’, ‘jqxGrid’);
});
/* Initialize the grid.*/
$(“#jqxgrid”).jqxGrid({
width: 1000,
source: dataAdapter,
editable: false,
theme: theme,
pageable: true,
filterable: true,
autoshowfiltericon: true,
autoheight: true,
sortable: true,
altrows: true,
enabletooltips: true,
rowdetails: true,
selectionmode: ‘singlerow’,
editmode: ‘selectedcel’,
initrowdetails: initrowdetails,
cache:false,
columns: [
{ text: ‘Id’, datafield: ‘id’, width: 100 },
{ text: ‘Name’, datafield: ‘stepDesc’, width: 250 },
{ text: ‘Step Type’, datafield: ‘stepTypeDetails_typeDesc’, width: 150 },
{ text: ‘Behavior Type’, datafield: ‘workFlowRoutingType_name’, width: 120 },
{ text: ‘Staging Queue’, datafield: ‘stagingQueue_sqDesc’, minwidth: 100 },
]
});