Posted
on Oct 28, 2011
(permalink)
I have a half-circle radial gauge that is contained in a panel. The problem is that when the panel is resized, the gauge background and the gauge scale stretch independently, giving odd visual results. See the two attached images. I have tried setting a variety of gauge properties, but cannot get a result where the two resize with the same aspect ratio.
Thanks for any help on this.
Dan
Reply
Answer
Andrey
Andrey
Posted
on Nov 1, 2011
(permalink)
Hi Dan,
Unfortunately the semicircle gauge does not keep the same aspect ratio when its container is resized. So, the only way to fix width and height of the radial gauge is when it is resized. I have attached a sample solution which uses additional Grid container to keep the aspect ratio of gauge when the Grid is resized.
I hope it helps.
Best wishes,
Andrey Murzov
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
Reply
Posted
on Nov 4, 2011
(permalink)
Yes, this does work.
An alternative solution that I found is to enclose the Gauge in a Viewbox with Stretch="Uniform". This also works!
Thanks.
Dan
Reply