visible date range

4 posts, 0 answers
  1. Lars
    Lars avatar
    11 posts
    Member since:
    Jul 2011

    Posted 20 Mar 2012 Link to this post

    Is there a way to programatically set the visible date range?

    i have been working with your custom tick interval sample, and I have implemented an IDateRange object, but despite my attempts to assign this either in XAML or C#, the GANTT always displays only the current year.

  2. Miroslav Nedyalkov
    Admin
    Miroslav Nedyalkov avatar
    1718 posts

    Posted 22 Mar 2012 Link to this post

    Hi Laris,

    Yes, you can set the VisibleRange and the GanttView control should redraw to respecting your change. Unfortunately there is bug that prevents the Gantt to reflect changes on the Start and End properties of the VisibleRange and you need to change the whole VisibleRange. This bug will be fixed in the next internal build.

    Regards,
    Miroslav Nedyalkov
    the Telerik team
    Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
  3. UI for WPF is Visual Studio 2017 Ready
  4. Lars
    Lars avatar
    11 posts
    Member since:
    Jul 2011

    Posted 22 Mar 2012 Link to this post

    Thanks Miroslav!

    Any chance you can share a code snippet demonstrating this? Seems straightforward, but I just can't get it to work, even if I re-assign the entire object.

    --lars
  5. Miroslav Nedyalkov
    Admin
    Miroslav Nedyalkov avatar
    1718 posts

    Posted 23 Mar 2012 Link to this post

    Hi Laris,

    Please refer to the attached sample project. In the current version only the first button works correctly and in the next internal build all buttons will work fine.

    Hope this helps.

    All the best,
    Miroslav Nedyalkov
    the Telerik team
    Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
Back to Top