I'm trying to show appointments in TimeLineView
grouped by resources. For each appointment in RadScheduler, I want to display dynamic tooltip. For that I had used RadToolTipManager and OnAjaxUpdate.
Code Snippet -
I am seeking answer to why part in code comment.
sender, ToolTipUpdateEventArgs e)
// THIS WORKS SUCCESSFULLY
Appointment appointment =
EventScheduler.Appointments.Where(apt => apt.ID.ToString().Equals(e.Value)))
appointment = apt;
// CODE COMMENTED BELOW NOT WORKS. WHY?
//var appointment = int.TryParse(e.Value, out aptId) ? EventScheduler.Appointments.FindByID(aptId) : EventScheduler.Appointments.FindByID(e.Value);
var toolTip = (AppointmentToolTip)LoadControl(
toolTip.TargetAppointment = appointment;
If it work one way, then it must work another way. Did anyone else noticed this bug?
I believe that the commented part is more optimized and fast in comparison to method I had implemented. So can Telerik team confirm that code I'm using would be equivalent fast?