Unplanned
Last Updated: 18 Oct 2024 14:31 by ADMIN
National
Created on: 09 Sep 2024 11:41
Type: Bug Report
1
Using Custom Linear Gauge Indicator BackgroundImage Throws Serialization Exception

Setting the Style > BackgroundImage property of the Linear Gauge > Indicator throws the following error:

This doesn't let me customize the Indicator of the Gauge.

2 comments
ADMIN
Dess | Tech Support Engineer, Principal
Posted on: 18 Oct 2024 14:31

Hello,

Thank you for sharing the alternative approach for setting a custom image even though it may be limited in terms of scale size.

Make sure you click the Follow button to get notified for any status changes.

Regards,
Dess | Tech Support Engineer, Principal
Progress Telerik

Stay tuned by visiting our roadmap and feedback portal pages, enjoy a smooth take-off with our Getting Started resources, or visit the free self-paced technical training at https://learn.telerik.com/.
National
Posted on: 13 Oct 2024 14:58

 

Issue Details : 

Trying to use custom Linear Gauge Indictor Background Images

Workaround 

While the gauge does not support custom indicator shapes currently, you can work around the issue by utilizing the Rectangle indicator type, removing its background color, and using a background image with the desired shape.

Still, this alternative is limited as the background images cannot scale to the size of the indicator and the image used will need to have the exact size for the current gauge.

Bug

The XML Serializer cannot resolve type with name System.Drawing.Image
Invalid cast from 'System.String' to 'System.Drawing.Image'  (screenshots attached)