Hi,
I have a couple of questions that relate to changing the way the data is displayed in the grid columns:
- How do you change the time units the duration column displays? I'd like to change it from days to minutes.
- Would that affect the tool tip that shows duration when you hover over the task bar in the Gantt Chart?
- Is it possible to change the Start Date and End Date formats so that they are relative to the hours instead of the day?
Thanks in advance,
Myca
Hello Myca,
Thank you for posting in our forums!
The unit of time for the duration can be set using the SetDuration method, which accepts a TimeSpanFormat parameter. For further reference please refer to the documentation article "Task Duration Adjustment". Also see the implementation in the sample I created for you.
After format changes are applied, the tooltip of the Gantt Chart`s task shows the duration in minutes.
Yes, it is possible. You can change it at design time ( click on the UltraGanttViews -> Properties window -> expand GridSettings -> click on ColumnSettings (button (Collection)) -> click on StartDateTime/EndDateTime -> on the right table see Format and fill with one, for example: HH:ss:tt ) or see the attached sample for code implementation. You may read more about the format strings on the MSDN page Custom Date and Time Format Strings
I am waiting for your response.
Hi Ivaylo,
Thank you for the sample code and the clear direction; I have this working in my code now.