Custom tooltip on appointments

7 posts, 1 answers
  1. Mattias
    Mattias avatar
    263 posts
    Member since:
    Aug 2012

    Posted 01 Feb 2011 Link to this post

    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
     
  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 02 Feb 2011 Link to this post

    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.
  3. Mattias
    Mattias avatar
    263 posts
    Member since:
    Aug 2012

    Posted 02 Feb 2011 Link to this post

    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
  4. Peter
    Admin
    Peter avatar
    6637 posts

    Posted 02 Feb 2011 Link to this post

    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.
  5. Mattias
    Mattias avatar
    263 posts
    Member since:
    Aug 2012

    Posted 02 Feb 2011 Link to this post

    Hmm, just walkarounds, does that mean that it is not possible for me to add my own javascript tooltip?
  6. Answer
    Peter
    Admin
    Peter avatar
    6637 posts

    Posted 02 Feb 2011 Link to this post


    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.
  7. Mattias
    Mattias avatar
    263 posts
    Member since:
    Aug 2012

    Posted 03 Feb 2011 Link to this post

    Thank you Peter! :)
Back to Top