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

Adding onclick function to close button

1 Answer 69 Views
ToolTip
This is a migrated thread and some comments may be shown as answers.
Thomas Kristensen
Top achievements
Rank 1
Thomas Kristensen asked on 21 Mar 2009, 12:20 PM
Hi

I am still missing that feature to have two or more independt Tooltips open at any given time.

With Q1 2009, how do I attach a function to the close button onclick event?

See this page
http://www.telerik.com/community/forums/aspnet-ajax/tooltip/two-independent-radtooltpmanagers.aspx

function OnClientShow(sender, eventArgs)
{

     var popup = sender.get_popupElement();
  var closeButton = $telerik.getElementByClassName(popup, "CloseButton", "A");
  closeButton.onclick = function() { alert("I was clicked"); }

}


This no longer works with Q1 2009.

Best Regards
Thomas Kristensen

1 Answer, 1 is accepted

Sort by
0
Tervel
Telerik team
answered on 24 Mar 2009, 01:55 PM
Hi Thomas,

As of Q1 a number of Telerik controls have their CSS names changed in order to unify and streamline the CSS conventions across the whole Telerik RadControls for ASP.NET AJAX suite. RadToolTip is one of those controls.
The following two blog posts contain more information on why this was done:

RadControls for ASP.NET AJAX receive a major face-lift!
Using pre-Q1 2009 skins with Q1 2009!

Hence, the classname "CloseButton" has been changed to "rtCloseButton".

Best wishes,
Tervel
the Telerik team

Check out Telerik Trainer , the state of the art learning tool for Telerik products.
Tags
ToolTip
Asked by
Thomas Kristensen
Top achievements
Rank 1
Answers by
Tervel
Telerik team
Share this question
or