I am exporting RadGrid using the exportToCSV() functionality. I have command fields whose headers I don't want to be exported.
At present the export is like this:
"Notes","View/Edit","First Name","Last Name","Organization","Job Title","Email","Business Phone","Delete"
"","","Abhishek","Parakh","State","Web Dev","yadayada@yahoo.com","405-xxx-xxxx",""
I want it to be like this:
"First Name","Last Name","Organization","Job Title","Email","Business Phone"
"Abhishek","Parakh","State","Web Dev","yadayada@yahoo.com","405-xxx-xxxx"
I dont want to do things manually. For example, do replace or remove characters, I just dont want the command fields to be exported from the radgrid.
Someone has posted examples such as
e.ExportOutput = e.ExportOutput.Replace("<head>", head);
e.ExportOutput = e.ExportOutput.Replace("<td>", "<td class='cell'>")
However, again this is only manual replacements. In future names of my command fields may change as well as their position.
All I want is that radgrid should not export command fields but only the fields corresponding to my database table and data.
At present the export is like this:
"Notes","View/Edit","First Name","Last Name","Organization","Job Title","Email","Business Phone","Delete"
"","","Abhishek","Parakh","State","Web Dev","yadayada@yahoo.com","405-xxx-xxxx",""
I want it to be like this:
"First Name","Last Name","Organization","Job Title","Email","Business Phone"
"Abhishek","Parakh","State","Web Dev","yadayada@yahoo.com","405-xxx-xxxx"
I dont want to do things manually. For example, do replace or remove characters, I just dont want the command fields to be exported from the radgrid.
Someone has posted examples such as
e.ExportOutput = e.ExportOutput.Replace("<head>", head);
e.ExportOutput = e.ExportOutput.Replace("<td>", "<td class='cell'>")
However, again this is only manual replacements. In future names of my command fields may change as well as their position.
All I want is that radgrid should not export command fields but only the fields corresponding to my database table and data.