I have a RadScheduler where I want to show details in a ToolTip from a context menu "Details...".
I got it all working, e.g. context menu is selectable, the code is called, data is being loaded and a tooltip is showing up,
BUT:
The tooltip always load the same tooltip for one appointment no matter on which appointment I select the context menu. It seems like it doesn't promote the AppointmentId or it doesn't see which appointment was right-clicked.
Any hints?
I have this code in 'AppointmentContextMenuItemClicked() where I call .Show() on the RadToolTipManager:
01.
protected
void
RadSchedulerPlanning_AppointmentContextMenuItemClicked(
object
sender, AppointmentContextMenuItemClickedEventArgs e)
02.
{
03.
AppointmentContextMenuItemClickedEventArgs args = e;
04.
05.
if
(e.MenuItem.Value ==
"CommandDetails"
)
06.
{
07.
string
id = e.Appointment.ID.ToString();
08.
09.
foreach
(
string
domElementID
in
e.Appointment.DomElements)
10.
{
11.
RadToolTipManager1.TargetControls.Add(domElementID, id,
true
);
12.
}
13.
14.
RadToolTipManager1.Show();
15.
}
16.
}