asp.net - Export Radgrid contains Charts -
asp.net - Export Radgrid contains Charts -
i'm trying export radgrid pdf (or excel). radgrid contains radhtmlgridcharts also. want export them radgrid in format (image, charts, or whatever) table text not charts.
here aspx code:
<telerik:radgrid id="radgrid5" runat="server" allowpaging="false" skin="default" onitemdatabound="radgrid5_itemdatabound" onneeddatasource="radgrid5_needdatasource" onitemcreated="radgrid5_itemcreated" onitemcommand="radgrid5_itemcommand">
code behind:
protected void radgrid5_itemcreated(object sender, griditemeventargs e) { e.item.visible = true; } public void configureexport(radgrid sender) { sender.exportsettings.openinnewwindow = true; sender.exportsettings.filename = "exporteddata"; } protected void radbutton_click(object sender, eventargs e) { configureexport(radgrid5); radgrid5.mastertableview.exporttoexcel(); }
radhtmlchart renders javascript on client won't able include in server export. perhaps can take screenshot of rendered page , set in pdf or png tool phantomjs otherwise - may need utilize old radchart renders image. maybe help http://www.telerik.com/support/code-library/convert-grid-and-chart-with-custum-lines-inside-a-grid-to-pdf or 1 http://www.telerik.com/support/code-library/exporting-radchart-to-pdf
asp.net telerik export radgrid radhtmlchart
Comments
Post a Comment