Categories | Question details Back To List | ||
dhtmlgridx export This is my grid defintion mygrid4.setHeader("ROW,Sub Brand,<center>1 Noticing,#cspan,<center>2 Identified,#cspan,<center>3 Validated,#cspan,<center>4 Qualified,#cspan,<center>5 Cond Agreement,#cspan,<center>6 Won,#cspan,<center>7 Lost,#cspan,<center>Total,#cspan,Period"); mygrid4.attachHeader("#rspan,#rspan,<center>Leads,<center>Revenue,<center>Leads,<center>Revenue,<center>Leads,<center>Revenue,<center>Leads,<center>Revenue,<center>Leads,<center>Revenue,<center>Leads,<center>Revenue,<center>Leads,<center>Revenue,<center>Leads,<center>Revenue,#rspan"); mygrid4.setInitWidths("50,100,100,100,100,100,100,100,100,100,100,100,100,100,100,100,100,100,100,10"); This is my export code mygrid4.setCSVDelimiter('\t'); mygrid4.enableCSVHeader(true); document.formstyle.csvBuffer.value=mygrid4.serializeToCSV(); Export works fine. I do not get the row defined using mygrid4.attachHeader Is there any tric to get the attached headers also Answer posted by Support on Oct 31, 2008 09:57 Unfortunately, grid doesn't support serialization of additional headers. Answer posted by Seetharaman Srinivasan on Oct 31, 2008 09:56 Thanks This is the code I used to take crae of this (Externally added the headers) //mygrid23.enableCSVHeader(true); document.formstyle.csvBuffer.value =document.formstyle.csvBuffer.value+"\r\nKey Brand Pen\r\n\tREPORT BRAND\tWeek to Week\tWeek to Week\tTotal\tTotal \tSegment\r\n"; document.formstyle.csvBuffer.value =document.formstyle.csvBuffer.value+"\tREPORT BRAND\tAccts \tRevenue \tAccts\tRevenue\tSegment\r\n"; document.formstyle.csvBuffer.value =document.formstyle.csvBuffer.value+mygrid23.serializeToCSV(); |