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

Important changes in the Client-Side API of RadToolTip for ASP.NET AJAX

4 Answers 437 Views
ToolTip
This is a migrated thread and some comments may be shown as answers.
Telerik Admin
Top achievements
Rank 1
Iron
Telerik Admin asked on 21 Apr 2008, 11:24 AM
Hello,

In RadControls for ASP.NET AJAX Q1 2008 there is a change in the Client-Side API. The compatibility layer which was used in the transition beta period is now removed. All client-side methods strictly follow the ASP.NET AJAX conventions and are lower case.
For instance: get_activeToolTip() should always be used from now on, get_ActiveToolTip() is no longer supported. This also results in significant improvement in page loading times.

Best regards,
The Telerik team

4 Answers, 1 is accepted

Sort by
0
dstj
Top achievements
Rank 1
answered on 20 Apr 2009, 06:29 PM
Please update the live demos and the documentation. Some are still using the wrong letter casing.

For example, from the API doc about "get_contentElement"
   var tooltip = $find("RadToolTip3");     
   var contentElement
= tooltip.get_ContentElement();
   var checkboxes
= contentElement.getElementsByTagName("INPUT");

From http://demos.telerik.com/aspnet-ajax/tooltip/examples/clientsideapi/defaultcs.aspx :

You can use the get_ContentElement, set_ContentElement functions to obtain a reference to the HTML element, holding the content of the RadToolTip or to set this element. Example:
                var tooltip = $find("RadToolTip1");
                var contentElement = tooltip.get_ContentElement();
                tooltip.set_ContentElement(contentElement);

Current version : 2009 Q1 SP1 (2009.1.402.35)
0
Svetlina Anati
Telerik team
answered on 21 Apr 2009, 07:58 AM
Hello dstj,

Thank you for reporting this, I already fixed the mentioned demo and article and updated them to the current naming conventions.

I also updated your account with new Telerik points for your cooperation.

Regards,
Svetlina
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
T F
Top achievements
Rank 1
answered on 11 May 2010, 07:33 PM
How do you display an HTML string returned by the webservice inside of the Tooltip?
0
Petio Petkov
Telerik team
answered on 12 May 2010, 04:34 PM
Hi,

Once the response is received we add it to the RadToolTip's content div with the following code:
div.innerHTML = response;
The following code:
[WebMethod]
   public String SbuDetailHtml(object context)
   {
       string value;
       string regular = "regular<br/>regular<H1>regular</H1>";
       string encoded = Server.HtmlEncode("encoded<br/>encoded<H1>encoded</H1>");
       return value = regular + encoded;
   }
will display:

regular
regular

regular

encoded<br/>encoded<H1>encoded</H1>

Hope this helps.

Kind regards,
Petio Petkov
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
ToolTip
Asked by
Telerik Admin
Top achievements
Rank 1
Iron
Answers by
dstj
Top achievements
Rank 1
Svetlina Anati
Telerik team
T F
Top achievements
Rank 1
Petio Petkov
Telerik team
Share this question
or