I'm new to the Infragistics controls as we purchased them very recently specifically for one of the controls, namely the timeline view.
We are writing an application to keep track of equipment and to show when it was used and when it is planned to be used etc.
I have configured my TimelineView to have a CalendarInfo control associated with it as well as a CalenderLook (using the Office2007 "skin"), and followed the samples to databind my owners and the appointments. Now I have sample data in my control and it all works nicely.
However, I would like to know how I change the color of the bar for the appointment when databinding. Currently the bars color follows the scheme of the owner, so that a blue colored owner will have blue colored bars. I can set the appearance of the backcolor and backcolor2 if I look through them all one at a time, but wondered if there was a way to do depending on a setting somewhere against the appointment? That way I could store this in my data and bind it.
Also, I'd like to change the tooltip for my appointments so they display custom data that relates to my specific items. Is there any way to do this?
Finally, I wonder if its possible to simply have alternating colors for the owners in the timeline view, rather than have each row come out in a different color?
I know there are alot of questions here, but like I said I'm new to these controls and would really appreciate some pointers.
Many thanks,
Karl
Assigning color schemes did not work for me, calendar still shows a range of colors.Anyway, I would like to assign fix alternating colors to my owner rows, assigning colors to owner.HeaderAppearance.BackColor at runtime doesn't work tho... Any suggestions?
Hello Karl,
While there is no automatic way to tell the UltraTimelineView to assign alternating colors to owners, you can do it yourself by iterating through the VisibleOwners collection and assign one of any two color schemes to every other owner's Outlook2007ColorScheme property.
Probitas said: However, I would like to know how I change the color of the bar for the appointment when databinding. Currently the bars color follows the scheme of the owner, so that a blue colored owner will have blue colored bars. I can set the appearance of the backcolor and backcolor2 if I look through them all one at a time, but wondered if there was a way to do depending on a setting somewhere against the appointment? That way I could store this in my data and bind it.
Currently, the way you are already doing it is the best way to do it.
Probitas said: Also, I'd like to change the tooltip for my appointments so they display custom data that relates to my specific items. Is there any way to do this?
You can do this by handling the AppointmentToolTipDisplaying event of the UltraTimelineView.
Probitas said: Finally, I wonder if its possible to simply have alternating colors for the owners in the timeline view, rather than have each row come out in a different color?
I'm not quite sure about this one, but I will get an answer for you.