Autosize

2 posts, 0 answers
  1. Michael
    Michael avatar
    43 posts
    Member since:
    Mar 2013

    Posted 08 May 2013 Link to this post

    How would you enable the RadGauge the ability to autosize based on the page size? This needs to be done dynamically and on page resize. Or in my example a User Control embedded within a RadPanel....
  2. Stamo Gochev
    Admin
    Stamo Gochev avatar
    157 posts

    Posted 13 May 2013 Link to this post

    Hi Michael,

    The RadGauge has a fixed size and it does not change its dimension when the page is being resized. As the RadGauge is used for showing data, changing its dimension on a window resize might not display the data in a proper way. That is why the RadGauge does not support setting its width and height in percents.

    What you can do in this case is to use RadGauge's client-side API and set its width and height via JavaScript using the set_width() and set_height() methods. This will resize its container and you will get the behavior you want. A detailed explanation on how to do this with the RadHtmlChart is explained in our forum thread for setting dimensions in percents. The same approach could be applied to the RadGauge in exactly the same way with little modifications.

    Could you please  try this scenario and inform me if you were able to apply it in your case?

    Kind regards,
    Stamo Gochev
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top