Radial gauge background stretch problem

3 posts, 1 answers
  1. Dan
    Dan avatar
    202 posts
    Member since:
    May 2006

    Posted 28 Oct 2011 Link to this post

    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.
  2. Answer
    Andrey avatar
    1681 posts

    Posted 01 Nov 2011 Link to this post

    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 >>

  3. Dan
    Dan avatar
    202 posts
    Member since:
    May 2006

    Posted 04 Nov 2011 Link to this post

    Yes, this does work.
    An alternative solution that I found is to enclose the Gauge in a Viewbox with Stretch="Uniform".  This also works!
Back to Top