hi
i have radtooltip manager placed in my master pages which i want to use to tooltipify only the form elements throughout my application. All of my forms are enclosed within a DIV for css formatting purposes so the tooltipzoneid seemed like an ideal way of setting this up. i placed the following tooltip manager in the master page:
<telerik:RadToolTipManager runat="server" ID="RadToolTipManager2" Width="200px" Height="75px"
ContentScrolling="None" OffsetX="0" OffsetY="-8" RelativeTo="Element" Position="TopCenter"
Animation="None" Skin="Sitefinity" ShowEvent="OnMouseOver" ShowCallout="true"
HideEvent="LeaveTargetAndToolTip" HideDelay="3000" AutoTooltipify="true" ToolTipZoneID="edForm">
</telerik:RadToolTipManager>
... and in the detail pages that required tooltipifying, i typically have something like this:
<div id="edForm">
<fieldset>
<legend>Link Details</legend>
<div class="fm-req">
<label for="wtl_name">
<asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" Text="*"
ErrorMessage="The Name field is required." ControlToValidate="wtl_name"></asp:RequiredFieldValidator>Name:</label>
<asp:TextBox runat="server" ID="wtl_name" Text='<%# Bind("wtl_name") %>' MaxLength="100"
ToolTip="Used to identify this tracked link (for your internal use only)."></asp:TextBox>
</div>
</fieldset>
</div>
Unfortunately, this setup does not seem to work. When the radtooltip manager is in the master page, everything on the page is tooltipified, irrespective of the zone ID. When i move the manager to the detail page, only those elements within the div are tooltipified.
Is there anything that can be done about this?
cheers,
rob
i have radtooltip manager placed in my master pages which i want to use to tooltipify only the form elements throughout my application. All of my forms are enclosed within a DIV for css formatting purposes so the tooltipzoneid seemed like an ideal way of setting this up. i placed the following tooltip manager in the master page:
<telerik:RadToolTipManager runat="server" ID="RadToolTipManager2" Width="200px" Height="75px"
ContentScrolling="None" OffsetX="0" OffsetY="-8" RelativeTo="Element" Position="TopCenter"
Animation="None" Skin="Sitefinity" ShowEvent="OnMouseOver" ShowCallout="true"
HideEvent="LeaveTargetAndToolTip" HideDelay="3000" AutoTooltipify="true" ToolTipZoneID="edForm">
</telerik:RadToolTipManager>
... and in the detail pages that required tooltipifying, i typically have something like this:
<div id="edForm">
<fieldset>
<legend>Link Details</legend>
<div class="fm-req">
<label for="wtl_name">
<asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" Text="*"
ErrorMessage="The Name field is required." ControlToValidate="wtl_name"></asp:RequiredFieldValidator>Name:</label>
<asp:TextBox runat="server" ID="wtl_name" Text='<%# Bind("wtl_name") %>' MaxLength="100"
ToolTip="Used to identify this tracked link (for your internal use only)."></asp:TextBox>
</div>
</fieldset>
</div>
Unfortunately, this setup does not seem to work. When the radtooltip manager is in the master page, everything on the page is tooltipified, irrespective of the zone ID. When i move the manager to the detail page, only those elements within the div are tooltipified.
Is there anything that can be done about this?
cheers,
rob
7 Answers, 1 is accepted
0
Hello rdochert,
I am not sure why you get the behavior you report. I built up a test demo based on your explanations - you can find it attached to the thread. The demo includes some hyperlinks which reside in the content page and should be tooltipified and some hyperlinks which are on the master page and should not. The demo works as expected on my side - please test it on yours and in case some modifications should be applied in order to replicate the problem, modify the code and paste it here along with very detailed explanations and I will do my best to help.
Regards,
Svetlina
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
I am not sure why you get the behavior you report. I built up a test demo based on your explanations - you can find it attached to the thread. The demo includes some hyperlinks which reside in the content page and should be tooltipified and some hyperlinks which are on the master page and should not. The demo works as expected on my side - please test it on yours and in case some modifications should be applied in order to replicate the problem, modify the code and paste it here along with very detailed explanations and I will do my best to help.
Regards,
Svetlina
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
rdochert
Top achievements
Rank 1
answered on 12 Jan 2010, 12:57 AM
Hi, thank you for taking the time to investigate this. After a little more trial and error, i was able to isolate the problem. It occurs if the named DIV does NOT appear in the sub-page. In my case, I want the radtooltip to appear on any page which has a form in it. some pages are for display only so those pages do not have the DIV with the targetzoneID in them at all. in these cases, the radtooltip is tooltipifying everything.
I was able to reproduce the problem using your sample simply by removing the following lines from Default3.aspx:
line5: <div id="edForm">
line 11: </div>
you should now see that everything on the page is being tooltipified despite none of it actually being within the targetzoneID (which, of course, does not exist).
cheers,
rob
I was able to reproduce the problem using your sample simply by removing the following lines from Default3.aspx:
line5: <div id="edForm">
line 11: </div>
you should now see that everything on the page is being tooltipified despite none of it actually being within the targetzoneID (which, of course, does not exist).
cheers,
rob
0
rdochert
Top achievements
Rank 1
answered on 14 Jan 2010, 05:06 AM
Hi,
any update on this?
thanks,
rob
any update on this?
thanks,
rob
0
Hi rdochert,
Let me explain in brief how the AutoToolTipify functionality works:
1) You can automatically tooltipify all the elements on the page by setting this property to true and leaving the TargetControls empty. More information about this is available in the demo below:
http://demos.telerik.com/aspnet-ajax/tooltip/examples/autotooltipify/defaultcs.aspx
2) You can automatically tooltipify the elements in a certain zone by setting in addition the ToolTipZoneID property. You can find a corresponding online demo here:
http://demos.telerik.com/aspnet-ajax/tooltip/examples/tooltipzoneid/defaultcs.aspx
If you want to tooltipify only particular elements and you do not want to have a zone determined, you should add the particular elements to the TargetControls collection as shown in our online demos, e.g the ones below:
http://demos.telerik.com/aspnet-ajax/tooltip/examples/default/defaultcs.aspx
http://demos.telerik.com/aspnet-ajax/tooltip/examples/loadondemand/defaultcs.aspx
http://demos.telerik.com/aspnet-ajax/tooltip/examples/tooltipversustooltipmanager/defaultcs.aspx
Please, examine the demos and choose the tooltipifying method which best meets your needs.
Best wishes,
Svetlina
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Let me explain in brief how the AutoToolTipify functionality works:
1) You can automatically tooltipify all the elements on the page by setting this property to true and leaving the TargetControls empty. More information about this is available in the demo below:
http://demos.telerik.com/aspnet-ajax/tooltip/examples/autotooltipify/defaultcs.aspx
2) You can automatically tooltipify the elements in a certain zone by setting in addition the ToolTipZoneID property. You can find a corresponding online demo here:
http://demos.telerik.com/aspnet-ajax/tooltip/examples/tooltipzoneid/defaultcs.aspx
If you want to tooltipify only particular elements and you do not want to have a zone determined, you should add the particular elements to the TargetControls collection as shown in our online demos, e.g the ones below:
http://demos.telerik.com/aspnet-ajax/tooltip/examples/default/defaultcs.aspx
http://demos.telerik.com/aspnet-ajax/tooltip/examples/loadondemand/defaultcs.aspx
http://demos.telerik.com/aspnet-ajax/tooltip/examples/tooltipversustooltipmanager/defaultcs.aspx
Please, examine the demos and choose the tooltipifying method which best meets your needs.
Best wishes,
Svetlina
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
rdochert
Top achievements
Rank 1
answered on 14 Jan 2010, 10:38 PM
there seems to be a communication problem here. please ignore all the previous posts and focus just on this.
if you create a tooltip and specify a tooltipzoneID but the target page does not have that ID on the page (which would be common in a master page, detail page scenario) then ALL elements on the page are tooltiped. this is not correct. if the target zone does not exist then NOTHING should be tooltiped. can you please investigate this and confirm that i am correctly stating the situation.
sincerely.
rob
if you create a tooltip and specify a tooltipzoneID but the target page does not have that ID on the page (which would be common in a master page, detail page scenario) then ALL elements on the page are tooltiped. this is not correct. if the target zone does not exist then NOTHING should be tooltiped. can you please investigate this and confirm that i am correctly stating the situation.
sincerely.
rob
0
rdochert
Top achievements
Rank 1
answered on 20 Jan 2010, 09:30 AM
hello
i am still awaiting an answer on this issue. to recap, if you specifiy a ToolTipZoneID and that ID does NOT exist on your page then all elements on the page are tooltip'd. This cannot be correct. If the ID does not appear on the page then NONE of the elements should be tooltip'd.
Can you please reply? This is causing major issues for me.
Sincerely,
rob
i am still awaiting an answer on this issue. to recap, if you specifiy a ToolTipZoneID and that ID does NOT exist on your page then all elements on the page are tooltip'd. This cannot be correct. If the ID does not appear on the page then NONE of the elements should be tooltip'd.
Can you please reply? This is causing major issues for me.
Sincerely,
rob
0
Hello rdochert,
I understand your point but since you want to use automatic autotooltoifying and since you need to explicitly set AutoToolTipify the expect result is automatic tooltipifying and not nothing to happen. That is why the developer should handle the case of zones and their IDs, furthermore there are other ways provided to tooltipify exactly what you need. This being said, the automatic tooltipifying is used only for simple base scenarios and for fine-tuning dynamically adding of target controls should be used.
For your particular case I suggest to simply put an empty DIV element with the ToolTipZoneID on the content pages which do not have such - in this manner you will trick the tooltip manager to tooltipify only it and since it is empty noting will get tooltipified on this page.
On a side note, in order to get a faster and ensured response I recommend to take advantage of our support system and to open support tickets which are handled with a high priority while the forums are considered community resources.
Regards,
Svetlina
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
I understand your point but since you want to use automatic autotooltoifying and since you need to explicitly set AutoToolTipify the expect result is automatic tooltipifying and not nothing to happen. That is why the developer should handle the case of zones and their IDs, furthermore there are other ways provided to tooltipify exactly what you need. This being said, the automatic tooltipifying is used only for simple base scenarios and for fine-tuning dynamically adding of target controls should be used.
For your particular case I suggest to simply put an empty DIV element with the ToolTipZoneID on the content pages which do not have such - in this manner you will trick the tooltip manager to tooltipify only it and since it is empty noting will get tooltipified on this page.
On a side note, in order to get a faster and ensured response I recommend to take advantage of our support system and to open support tickets which are handled with a high priority while the forums are considered community resources.
Regards,
Svetlina
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.