Fixed "zoom" Level

2 posts, 0 answers
  1. Keith
    Keith avatar
    88 posts
    Member since:
    May 2007

    Posted 22 Aug 2012 Link to this post

    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
  2. Peshito
    Admin
    Peshito avatar
    497 posts

    Posted 27 Aug 2012 Link to this post

    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.

  3. DevCraft banner
Back to Top