4 Answers, 1 is accepted
Thank you for writing.
RadGanttView can support tasks in seconds and milliseconds as well. The OnePixelTime property of the graphical view determines how much time a single pixel represents and if you would be having tasks that short you will need to set it to a very small TimeSpan value. The smallest timeline range which we have at the moment is DayQuarterHours which will create timeline items at every 15 minutes. If you need to use a smaller range you can also consider creating a custom timeline view. A sample approach is demonstrated here: https://docs.telerik.com/devtools/winforms/ganttview/timeline/timeline-views.
The code snippet below will create a timeline view spanning 10 seconds having several tasks and 1 pixel equalling 25 milliseconds:
I am also attaching a screenshot showing the result on my end.
I hope this helps. Let me know if you need further assistance.
Big thanks for response.
Can you answer a couple more questions?
1) Can in GanttView add many task (rhombus) in one line?
2) I try create "Custom timeline" but in help page have not a good example for my task (Seconds and millisecond). May by you have another example with up timeline have seconds diapason and down with microseconds?
For example i ann file.
Thank you for writing back.
RadGanttView is designed to support a single item per row. You can handle the ItemPaint event which provides access to the Graphics object and paint custom objects in the graphical view: https://docs.telerik.com/devtools/winforms/ganttview/formatting/custom-painting.
Regarding the custom timeline, you can test the sample implementation below. Basically, the range is separated in seconds and a header element is created every 10 seconds:
Please note that such an approach would only be suitable for a timeline view with a very short span, as elements will be created for each second. I am also attaching a short video showing the result on my end.
I hope this helps. Let me know if you have other questions.
Thanks for you example. It is help me.