when mouse over in an appoint,it will show a tooltip such as : 3pm-5pm Lunch(Cafe).But I want modified this tooltip like that :
Time : 3pm-5pmSubject : LunchLocation : CafeDescription : meeting a client
How I can do it?
I know from experience that the Infragistics object model does not natively allow for a lot of customization of the tooltips. I had to write additional code that built up javascript for each appointment that would then modify the actual table and div title attributes after they were rendered.
If you are interested in more details, I could look into the possibility of posting some of my code.
Here is Infragistics' response:
Unfortunately, As such there is no functionality available to customize tooltip of an activity in WebDayView, WebWeekView and WebMonthView controls. I have logged a feature request on your behalf with the following description so that this functionality may be added to a future release. Your reference number for these feature requests are FR09077, FR09078 and FR09079.
FR Description: "Customer wants the functionality to customize tooltip of an activity in WebDayView."
FR Description: "Customer wants the functionality to customize tooltip of an activity in WebWeekView."
FR Description: "Customer wants the functionality to customize tooltip of an activity in WebMonthView."
Yes,I'm interested in more detail, may you posting some of your possiibility code.
tamhoa,
If all you are looking for is to be able to accomplish this:
Then this should do the trick:
myDayView.AppointmentTooltipFormatString = "Time: <START_DATE_TIME>-<END_DATE_TIME><NEW_LINE>Subject: <SUBJECT><NEW_LINE>Location: <LOCATION><NEW_LINE>Description: <DESCRIPTION>";
Or were you looking to customize even further?
Did you get an answer to the above question?
I want to display the 'Resource' name in the tooltip and cannot find a way to do it.
What about if I need get data from certain field value from database and display it in <DESCRIPTION>
Thank you.
I found the solution to my problem -- which may impact you as well. If you add a custom CSS class, you get your class added to the default class. Since it doesn't replace it, you don't actually overwrite the overflow settings. I found it best to modify the ig_monthview.css and ig_weekview.css documents.
When using the Office 2007 Silver style set, I got my desired results by adding this to the bottom of the CSS doc:
.igmv_Office2007SilverDay DIV DIV{ overflow: none; overflow-x: none; white-space: normal;}.igmv_Office2007SilverActiveDayHeader DIV{ overflow: none; overflow-x: none; white-space: normal;}.igmv_Office2007SilverOtherMonthDay DIV{ overflow: none; overflow-x: none; white-space: normal;}
I'm doing something similar on mine and also customizing the AppointmentFormatString to match. The problem I'm having with the appt in the generic display (not the tooltip) is that the Subject line flows off the right hand side and doesn't word-wrap. Is anyone familiar with an approach to modify that? I'm playing around with CSS now to see if that might get me what I need but I haven't had much luck yet. I'd also like the day cell to expand vertically if there are several appointments that day. I added a CSS class with "overflow: auto;" but this puts scrollbars on each day's cell, when I really want the user to scroll the entire page down instead.
-Doug