How to add total column in the Header of the grid??

Hi,

I want to add total column in the header using ${#stat_total} which is available in dhtmlxgrid_filter.js. Please share any sample. I dont understand how to use ${#stat_total} for Header column.

Thanks,
Govi

The solution is the same as with the attaching to the footer:

mygrid.attachHeader("#stat_total");

still i didn’t get the output. Can you please provide sample html page which works.

Thanks,
Govi

The provided code works for me.
Here is the complete code:

mygrid = new dhtmlXGridObject('gridbox'); mygrid.setImagePath("../../codebase/imgs/"); mygrid.setHeader("1,2,3,4,5,6"); mygrid.attachHeader("data1,data2,data3,#stat_total,data5,data6"); mygrid.setInitWidths("150,170,50,80,50,*") mygrid.setColAlign("left,left,right,right,right,right") mygrid.setColTypes("ro,ro,price,ed,price,ed"); mygrid.setColSorting("str,str,int,int,int,int") mygrid.setSkin("dhx_skyblue"); mygrid.init(); mygrid.loadXML("../common/grid_numbers.xml");

If issue still occurs for you, please, provide with a similar sample of your code and a screenshot with the actual behavior.