This is a migrated thread and some comments may be shown as answers.

Custom tooltip on appointments

6 Answers 356 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Mattias
Top achievements
Rank 1
Mattias asked on 01 Feb 2011, 10:34 PM
Hi,
I want to add a custom tooltip on my appointments in the scheduler but I cant figure out how to do it.
I have tried like this:
protected void RadScheduler1_AppointmentDataBound(object sender, SchedulerEventArgs e)
{
    e.Appointment.Attributes.Add("onmouseover", "showTip('my custom tool tip text', 450);");
    e.Appointment.Attributes.Add("onmouseout", "hideTip();");
}

But the attributes are not added anywhere in the code when I look at the rendered html source, why?
I want the tooltip to show up when I hover over an appointment.

Regards,
Mattias
 

6 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 02 Feb 2011, 09:06 AM
Hello,


You could directly set the ToolTip property of the appointment as shown below.

Code:
protected void RadScheduler2_AppointmentDataBound(object sender, SchedulerEventArgs e)
{
    e.Appointment.ToolTip = "custom tooltip";
}



-Shinu.
0
Mattias
Top achievements
Rank 1
answered on 02 Feb 2011, 09:12 AM
Yes, but that is not good enough!
My tooltip contains a html table with 5-6 fields of information. Thats why I have a javascript dhtml tooltip.

/Mattias
0
Peter
Telerik team
answered on 02 Feb 2011, 01:04 PM
Hello Mattias,

You can use RadToolTip as shown in this demo:

http://demos.telerik.com/aspnet-ajax/scheduler/examples/radtooltip/defaultcs.aspx


Kind regards,
Peter
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
0
Mattias
Top achievements
Rank 1
answered on 02 Feb 2011, 02:11 PM
Hmm, just walkarounds, does that mean that it is not possible for me to add my own javascript tooltip?
0
Accepted
Peter
Telerik team
answered on 02 Feb 2011, 04:01 PM

You can handle the mouseover event of the appointments as shown in this thread:

http://www.telerik.com/community/forums/aspnet-ajax/scheduler/can-i-get-client-side-event-on-mouse-hover-on-appointment.aspx#1157591


Greetings,
Peter
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
0
Mattias
Top achievements
Rank 1
answered on 03 Feb 2011, 09:57 AM
Thank you Peter! :)
Tags
Scheduler
Asked by
Mattias
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Mattias
Top achievements
Rank 1
Peter
Telerik team
Share this question
or