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

Tooltip onLoad

5 Answers 144 Views
ToolTip
This is a migrated thread and some comments may be shown as answers.
rdochert
Top achievements
Rank 1
rdochert asked on 10 Feb 2008, 09:00 AM
on trawling the forums i found this thread:
http://www.telerik.com/community/forums/thread/b311D-hmmtm.aspx

which suggested an onload opener was coming for radtooltip prometheus. as far as i can tell, this has not been implemented so i was wondering if there were any alternatives to get a radtooltip to appear when a page was opened. (i want to use it as a less obtrusive confirmation message after a particular action than, say, a javascript alert).

i thought something like this would do the trick:
    <script type="text/javascript">
    //<!--
    var tooltip = $find("<%= RadToolTip1.ClientID %>");
    tooltip.show();
    //-->
    </script>

but it does not and produces a javascript null error (and the syntax on the demo page produces a javascript "object expected" error ). if it makes any difference, my tooltip is on a master page.

any ideas? also, any plans to port the asp.net scroller to prometheus?

thanks,
rob

5 Answers, 1 is accepted

Sort by
0
Svetlina Anati
Telerik team
answered on 12 Feb 2008, 11:13 AM
Hello Rob,


This functionality is not implemented yet in RadToolTip but it is going to be available in our Service Pack, which will be released at the end of February. For the time being I can suggest you to use the workaround shown in the attached .aspx file. In it the RadToolTip is shown relative to a hidden field on page load.

As for the error that you get, it is because in the page load event the ToolTip is still not rendered because its AJAX based - in order to execute a function when it is loaded you must add a load handler as shown in the example.

Note that if your RadToolTip is placed in a MasterPage you must use data binding expressions <%%> to obtain a reference to the RadToolTip and also you need to call the DataBind() method in the code-behind. If it is placed in the content page you don't need to do this.

As for your last question, I am not quite sure if I understand you correctly. Can you please provide more information about it?


Kind regards,
Svetlina
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
rdochert
Top achievements
Rank 1
answered on 13 Feb 2008, 09:00 AM
thanks for that. the demo worked perfectly.
for anyone else who reads this, to get it working on a master page, i used the syntax ...

var

tooltip = $find("<% =RadToolTip1.ClientID %>"); 

i also found that the databind method wasn't needed.

many thanks for your help. when i mentioned porting "scroller", i actually meant "rotator". for my particular needs, that was another alternative - but this works great.

my next challenge is to somehow get an Ajax update on a content page to set the text on the master page tooltip and show it.

cheers,
rob

0
rdochert
Top achievements
Rank 1
answered on 27 Feb 2008, 09:12 AM
hi
i just downloaded and installed the new service pack but on consulting the documentation i could not see any mention of the "show of load" property we spoke about here. could you update me on that?
thanks,
rob

0
Tervel
Telerik team
answered on 27 Feb 2008, 09:26 AM
Hello rdochert,

We will be updating the documentation for the official release. At this point there is an online demo example that features this functionality (Actually for this release we added 6 new RadToolTip examples highlighting some commonly used scenarios, and we suggest check them out)

What we did was to add a serverside method Show() to the tooltip, as well as a declarative property with the same name that exist in RadWindow - VisibleOnPageLoad = true.

We hope this helps,
Tervel
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
rdochert
Top achievements
Rank 1
answered on 27 Feb 2008, 09:44 AM
Outstanding Tervel! You guys are ticking all the boxes.

cheers,
rob
Tags
ToolTip
Asked by
rdochert
Top achievements
Rank 1
Answers by
Svetlina Anati
Telerik team
rdochert
Top achievements
Rank 1
Tervel
Telerik team
Share this question
or