Is it possible to customize the owner header in the UltraTimeLineView to display multiple columns? Currently only a single column is displayed showing the name of the owner. I would like to display other custom attributes of the owner in a cross tab like structure. i.e. name, department, supervisor etc.
Did you ever get a response from anyone or manage to solve this issue ?
Kind Regards,
Tim
It doesn’t appear that the Infragistics team wish to contribute to this post, perhaps because it was started some time ago; however I’ve been looking into the issue and have two possible solutions. One complicated and one reasonable simple.
Solution One.
Use a creation filter to intercept the creation of the owner column, and add your additional columns into this section. This however requires an intimate knowledge of creation filters and a good understanding of the structure and hierarchy of the UIElements within the TimeLineView. Note: That creation filters and custom UIElements are a dark art known by a precious few. There are not a lot of examples out there and help is generally limited to the basics, so this is generally a try and error thing. An understanding of the System.Drawing framework is also a must as you’ll be playing with rectangles and brushes without the fun of getting paint on your hands. If I still haven’t put you off this route by now then please read the following article which will give you an understanding of the differences between creation filters and draw filters. Its and excellent article and sheds a lot of light on this otherwise, dark subject.
http://billb.name/it/gridFilters.asp
You also find that downloading the following tool will lift the bonnet on the whole creation architecture. It allows you to see what UIElement is created in what order and when! It’s simply a must if you’re going to be getting your hands dirty messing around with creation and draw filters.
http://geekswithblogs.net/devin/archive/2005/11/17/60406.aspx
Solution Two.
Combine both a GridView and a TimeLineView into a single custom control such that each of the grid rows marries up to corresponding owner row. Your need to ensure that you turn off the owner header column and set the grid rows and timeline rows to the same height. You also probably need to disable the scroll bars on both controls and manage the number of rows by a simple paging control.
I also need to achieve the same result and have therefore elected for solution two as we’re under some time constraints to produce before the end of the month. If I ever opt for solution one, I’ll post my solution here.
Cazpian