The code I use for exporting my grid to excel is as follows :
Pls note that I am not using
because I dont want data to be sent to an external server.
mygrid2 = new dhtmlXGridObject(‘mygrid_container2’);
mygrid2.setHeader(“Excel ID,Uploaded Date”);
However when I add headers in this format , export doesnt work :-
mygrid2.attachHeader(“Excel ID,Uploaded Date”);
Could you pls tell me how to do this?