Right Click Export option for Guages

3 posts, 0 answers
  1. Madhav Joshi
    Madhav Joshi avatar
    19 posts
    Member since:
    Oct 2012

    Posted 30 Oct 2012 Link to this post

    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 :
    <telerik:RadChart Name="chartMileStone" >

    <telerik:RadContextMenu ItemClick="exportToPDF">

    <telerik:RadMenuItem Header="Save as PDF"/>



    In XAML.cs :

            private void exportToPDF(object sender, Telerik.Windows.RadRoutedEventArgs e)


                RadChart radChart = (RadChart)((Telerik.Windows.Controls.RadContextMenu)(sender)).UIElement;



    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.

  2. Andrey
    Andrey avatar
    1681 posts

    Posted 02 Nov 2012 Link to this post

    Hello Mady,

    Presently, the gauge control does not have built-in feature for exporting it to PDF document. But it is possible using the PdfFormatProvider which allows to export the RadDocument to PDF. You can create the document and you can include into it the image of the gauge which you can get using the ExportExtensions.ExportToImage method.
    I have attached a sample solution.
    I hope it helps.

    Andrey Murzov
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  3. DevCraft banner
  4. Madhav Joshi
    Madhav Joshi avatar
    19 posts
    Member since:
    Oct 2012

    Posted 02 Nov 2012 Link to this post

    Hi Andrey ,

    Thanks for the reply. Helped a lot . Will try implementing your solution to overcome my difficulty :)
Back to Top