Hi Team,
We are facing issue while exporting excel for multiple row selection. It works fine for single row selection and export all the data’s But it throws exception while selecting multiple records.
Below is our code:
$("#excel").click(function () {
mygrid.setSerializableColumns("false,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true");
mygrid.enableMultiselect(true);
var count = mygrid.getSelectedId();
if (count != null || count != "")
mygrid.toExcel("Generator/GenerateExcel", null, false, false, count);
else
mygrid.toExcel("Generator/GenerateExcel");
});
It throws below error in dhtmlxgrid.js file for multiple selection by clicking ctrl + select the another row.
[b]TypeError: c is null
var d = c._childIndexes ? c.childNodes[c._childIndexes[b]] : c.childNodes;
Regards,
S.Dhivya