Hello Nick, i would like to be able to set the first and last day visualized in the chart section of the gantt, delimiting the displayed dates.
There is a way i can do that?
Thanks,
Fabrizio
Hello Fabrizio,
Following our discussion from:https://ko.infragistics.com/community/forums/p/111314/522613.aspx#522613 I have created this forum thread.
If you want to programmatically control the date in view within range then you could set the VisibleDateRange of the xamGantt. It is DateRange so you could set Start of the specified range to determine the first visible datetime in view and you could also set it on a single DateTime.
Hi Nick,
thank you for your answer.
Can i set the end date of the gantt calendar also? I want it to show one week at the time, no matter how long the project tasks.
The functionality I discussed in my previous post - VisibleDateRange will set the first date and depending on your TimescaleBand will show next days or weeks.
If you want to restrict only one week for example you can use TimescaleBand set to "Weeks" and retemplate the TimescaleIntervalPresenter from the primitives namespace:
<ig:XamGantt.Resources> <local:CustomConverter x:Key="conv"/> <Style TargetType="{x:Type igPrim:TimescaleIntervalPresenter}"> <Setter Property="Visibility" Value="{Binding RelativeSource={RelativeSource Self},Converter={StaticResource conv}}"/> </Style> </ig:XamGantt.Resources>
Using a Converter you can check IntervalInfo.Interval and return Visibility.Visible or Visibility.Collapsed. Note that this will effectively hide all TimescaleIntervals except those return by the Converter.
If you want to define the start and end Date of Gantt Chart Calendar - zoom effect to see a specific range -that has been determined to be a product idea. You can suggest new product ideas for future versions by emailing ideas@infragistics.com.
Submitting your idea will send it directly to our product management team so that it can be imported into our new ideas community once live: http://ideas.infragistics.com.
Remember when submitting your idea to explain the context in which a feature would be used and why it is needed as well as anything that would prevent you from accomplishing this today. You can even add screenshots to build a stronger case. You can also link back to this thread for additional details.Thank you in advance to submitting your product idea.
Hi Nick, sorry but i don't understand how the Converter works. Can you be more specific?
hMATO Thanks, Fabrizio
The converter can hide a TimeScaleBand, for reference see the attached image.
If you want to see a zoom effect from date to date , you can suggest a product idea as we discussed in the previous post.
Sincerely,NickEntry-Level Software Developer