This is a migrated thread and some comments may be shown as answers.

Autosize

1 Answer 89 Views
Gauge
This is a migrated thread and some comments may be shown as answers.
Michael
Top achievements
Rank 1
Michael asked on 08 May 2013, 03:05 PM
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....

1 Answer, 1 is accepted

Sort by
0
Stamo Gochev
Telerik team
answered on 13 May 2013, 10:19 AM
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.
Tags
Gauge
Asked by
Michael
Top achievements
Rank 1
Answers by
Stamo Gochev
Telerik team
Share this question
or