Telerik:Radgridview Export to excel -


i using telerik radgridview in 1 of reports. have export result excel, using telerik's inbuild exporttoexcel function export result excel format. requirement want show header in generated excel

please advise

i found solution this. achieve need add following event:

protected void radgrid1_excelmlexportrowcreated(object sender, telerik.web.ui.gridexcelbuilder.gridexportexcelmlrowcreatedargs e) {         if (e.rowtype == telerik.web.ui.gridexcelbuilder.gridexportexcelmlrowtype.headerrow)         {            e.worksheet.worksheetoptions.pagesetup.pageheaderelement.data = "this draft data";         } } 

it work me.


Comments

Popular posts from this blog

c++ - Linked List error when inserting for the last time -

c++ - Issues with OpenGL referencing when compiling in Ubuntu terminal -

Using Angularjs $http in browser console -