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

Fixed "zoom" Level

1 Answer 21 Views
TimeBar
This is a migrated thread and some comments may be shown as answers.
Keith
Top achievements
Rank 1
Keith asked on 22 Aug 2012, 07:04 PM
Hi

I've been asked to write an application which allows its users to enter values at the quarter level (again user-determined ranging from 1 quarter up to say 8 quarters into the future) and then optionally drill down to enter values at an individual month level. I immediately thought that the TimeBar control would be perfect but when I've tried to implement it, the control determines the "zoom" level based on the period Start and End and the amount of available screen space and so if the user's selected a two quarters, the timebar automatically shows months rather than the desired 2 quarters for example.

Is it possible to restrict the control so that it doesn't automatically zoom in rather that I can specify the default level and then the user can choose to zoom down?

Thanks
Keith

1 Answer, 1 is accepted

Sort by
0
Peshito
Telerik team
answered on 27 Aug 2012, 08:26 AM
Hi,

Have you tried using the MinZoomRange property. It  will allow you to specify the minimum zooming interval. For example using:
timeBar.MinZoomRange = TimeSpan.FromDays(10);
will make the minimum zoom interval to be 10 days.

Hope this helps.

Greetings,
Peshito
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
TimeBar
Asked by
Keith
Top achievements
Rank 1
Answers by
Peshito
Telerik team
Share this question
or