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

visible date range

3 Answers 154 Views
GanttView
This is a migrated thread and some comments may be shown as answers.
Lars
Top achievements
Rank 1
Lars asked on 20 Mar 2012, 05:58 PM
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.

3 Answers, 1 is accepted

Sort by
0
Miroslav Nedyalkov
Telerik team
answered on 22 Mar 2012, 09:34 AM
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 >>
0
Lars
Top achievements
Rank 1
answered on 22 Mar 2012, 04:09 PM
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
0
Miroslav Nedyalkov
Telerik team
answered on 23 Mar 2012, 10:28 AM
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 >>
Tags
GanttView
Asked by
Lars
Top achievements
Rank 1
Answers by
Miroslav Nedyalkov
Telerik team
Lars
Top achievements
Rank 1
Share this question
or