This question is locked. New answers and comments are not allowed.
Hi Team,
I implemented RadCharts and Gauges into our Dashboard and "Export to PDF" option works fantastic with RadChart but when it comes to Guages doesn't seem to work , its just because guages do not have ExportToImage property which is present for RadChart. Below is code i used for exporting.
In XAML.cs :
I implemented RadCharts and Gauges into our Dashboard and "Export to PDF" option works fantastic with RadChart but when it comes to Guages doesn't seem to work , its just because guages do not have ExportToImage property which is present for RadChart. Below is code i used for exporting.
In XAML :
<telerik:RadChart Name="chartMileStone" >
<telerik:RadContextMenu.ContextMenu>
<telerik:RadContextMenu ItemClick="exportToPDF">
<telerik:RadMenuItem Header="Save as PDF"/>
</telerik:RadContextMenu>
</telerik:RadContextMenu.ContextMenu>
</telerik:RadChart>
In XAML.cs :
private void exportToPDF(object sender, Telerik.Windows.RadRoutedEventArgs e)
{
RadChart radChart = (RadChart)((Telerik.Windows.Controls.RadContextMenu)(sender)).UIElement;
ChartExporter.SaveAsPDF(radChart);
}
I even Replaced RadChart in Above code with guage type and found that Property( ExportToImage ) is missing for the guages.
Please help me to solve this issue.