Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted on Nov 19, 2008 02:57
open dhtmlx forum
serializeToCSV(true) does not give what is expected.

Hi

I am using dhtmlxGrid v.2.0 Professional edition build 81009/81107
when I export I am not getting what I am expecting

I have
myGrid.setCSVDelimiter("\t");
myGrid.enableCSVHeader(true);
myGrid.setSerializationLevel(false,false,true);

function exportCSV(){
document.getElementById('exportdatabox').value = myGrid.serializeToCSV(true);
document.getElementById('exportform').submit();
}

The exported file headings are 1 out as the ids are exported and also I thought that serializeToCSV(true) exported the display values rather that html (links etc)
Answer posted by Support on Nov 19, 2008 04:56
>>file headings are 1 out as the ids are exported 
If you need not ID in export, just add the next line
    grid.enableCSVAutoID(true);

>> also I thought that serializeToCSV(true) exported the display values rather that html (links etc)
It is known issue with latest build. As fast solution you can use the next line for the same result 
    grid._strictText = true;