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

RadToolTipManager + Usercontrol

7 Answers 364 Views
ToolTip
This is a migrated thread and some comments may be shown as answers.
Robert Madrian
Top achievements
Rank 1
Veteran
Iron
Robert Madrian asked on 11 Oct 2007, 10:42 AM
Hello,

I want to use the RadToolTipManager in my usercontrols but it seems that the AjaxUpdate event does'nt fire.
Background: In my a application I use a masterpage and a Portal.aspx where I load usercontrols dynamically depending in a parameter in the query string. I alos have nested usercontrols.

If a add the RadToolTipManager in the Portal.aspx it works but in the usercontrols not.

Why?

How to find out if the AjaxUpdate event is fire?

regards

7 Answers, 1 is accepted

Sort by
0
Tsvetie
Telerik team
answered on 12 Oct 2007, 08:26 AM
Hi Robert Madrian,
I tried to reproduce the problem you describe, but to no avail - please find the pages of my test project attached.

Please make sure that you are using the latest version of the Prometheus suite and in case the problem persists, open a new support ticket and send us a simple running project, demonstrating it.

All the best,
Tsvetie
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Robert Madrian
Top achievements
Rank 1
Veteran
Iron
answered on 14 Oct 2007, 01:02 PM
Hello,
I have solved the problem - it was a problem with the ClientID and dynamic loaded Usercontrols (Templates) and the FormViewControl.

But I have another problem: I use the RadToolTipManager and add the TargetControls at runtime. Sometimes I have to set this not at the first load of the page but at the potsback. The problem is that if the TargetControls  are empty the Tooltip appears somewhere on other controls (links etc.) even I set the enabled=false?

Why?

Another Problem: if to use the settings position "MiddleRight" and RelativTo "Element" and Animitaion "Fade" the the tooltip comes up left under the Image and then if it is loaded it leaps to the correct position.

Another (important) suggestion: it would be very usefull if it would be possible to set a max width and a max height so that the tooltip would not be greater than the browser window - but it auto sizes the content up to that max values and it the content is greater the scrollbars becomes visible - also min width and win height.

regards
0
Robert Madrian
Top achievements
Rank 1
Veteran
Iron
answered on 17 Oct 2007, 12:28 PM
Hello,

What do you say about my suggestion in the last post?

regards
0
Tsvetie
Telerik team
answered on 18 Oct 2007, 12:58 PM
Hello Robert,

Up to your question about target controls collection of RadToolTipManager:
This behavior is by design, and is so on purpose.
One of the main ideas behind RadToolTipManager is to allow for easy replacement of the browser tooltips. Thus, we wanted to make sure that users who wanted just that to be able to drop a manager on the page - and that's it.

So, by design, if the TargetControls collection of the manager is empty, it will tooltipify the whole page.
Setting the tooltip manager Visible = false is the correct thing to do. Visible = false instructs the .NET framework to skip rendering the control on the client altogether.


Max-height and max-width suggestion
We will log this as a feature request in our TODO list. At this point we are not able to tell you when or if this feature will make it to the tooltip, as it poses a number of challenges to overcome to make it work reliably in all scenarios.
One immediate suggestion that we have, however, would be to implement a subset of functionality yourself - and we can assist you along the way. Here is our suggestion:
1. Attach to the OnClientShow of tooltip - this event is fired after the tooltip is shown and rendered on the page. You can calculate the size of the content area and based on your findings you can set different size or overflow.
2. In the Show event, to get a client reference to the tooltip's content area use
   var contentArea = sender.get_contentElement();

Animation problem
Could you please prepare and send us a simple running project, demonstrating this issue? I tried to reproduce it with my test project, but to no avail.

Best regards,
Tsvetie
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Robert Madrian
Top achievements
Rank 1
Veteran
Iron
answered on 23 Oct 2007, 05:29 PM
Animation problem: it was only on one site - maybe a stylesheet problem - now it is solved

regards
0
Robert Madrian
Top achievements
Rank 1
Veteran
Iron
answered on 13 Oct 2008, 05:13 PM
Hello

some news about my suggestion from last year:

Another (important) suggestion: it would be very usefull if it would be possible to set a max width and a max height so that the tooltip would not be greater than the browser window - but it auto sizes the content up to that max values and it the content is greater the scrollbars becomes visible - also min width and win height.

regards
0
Svetlina Anati
Telerik team
answered on 14 Oct 2008, 08:13 AM
Hi Robert,

I  understood your last suggestion for max width and max height and forwarded it for consideration but I cannot tell you whether we will implement it. When we decide to implement a property it has to meet certain requirements, e.g to change the control's behavior in a simple and predictable manner, when used in different scenarios. We also try to keep the properties simple and to make a more complicated behavior to be a result of a combination of different properties.

Best wishes,
Svetlina
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
ToolTip
Asked by
Robert Madrian
Top achievements
Rank 1
Veteran
Iron
Answers by
Tsvetie
Telerik team
Robert Madrian
Top achievements
Rank 1
Veteran
Iron
Svetlina Anati
Telerik team
Share this question
or