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

rendering speed

2 Answers 60 Views
ToolTip
This is a migrated thread and some comments may be shown as answers.
mww
Top achievements
Rank 1
mww asked on 21 Jun 2010, 05:23 PM
If I place a tooltip manager on a page and hard code in its width and height, the tooltip renders smoothly.  As im generating the contents of the tooltip panel dynamically from a database, the height will vary depending on the amount of text returned, so I cant hardcode the height, but as soon as I remove the height property, the tooltip renders very slowly and 'jerky'.  Is this a known bug ?  I cant fix the height since I dont know what it will be until runtime when its contents are retrieved

 <telerik:RadToolTipManager runat="server" AnimationDuration="300" ShowDelay="200" 
            HideDelay="1" ID="RadToolTipManager1" Width="450px"  RelativeTo="Element" 
            Animation="Slide" Position="BottomCenter" OnAjaxUpdate="OnAjaxUpdate"  
        Skin="Sunset" HideEvent="LeaveToolTip" /> 


c#

this.RadToolTipManager1.TargetControls.Add(this.ImageGuarantee.ClientID, "Guarantee", true); 
                this.RadToolTipManager1.TargetControls.Add(this.ImageWhy.ClientID, "Why", true); 
                this.RadToolTipManager1.TargetControls.Add(this.ImageVIP.ClientID, "VIP", true); 

2 Answers, 1 is accepted

Sort by
0
mww
Top achievements
Rank 1
answered on 22 Jun 2010, 08:29 PM
can anyone help me with this problem ???  the tooltip wont render smoothly when the height is not hard coded, is this a bug ??
0
Svetlina Anati
Telerik team
answered on 23 Jun 2010, 11:23 AM
Hello mww,

I already answered your other thread and for your convenience and for others who might have the same issue I pasted it below:

It is possible to get undesired position when there is not explicit width set and the OnAjaxUpdate event is used. However, this is expected behavior in such case - the content of the tooltip is loaded through AJAX and the tooltip cannot "predict" the width it has to have when it is shown. Thus it shows at some coordinates and after that the resize takes place and as a result the position is not the correct.

This being said, you should set the Width property explicitly and to use the ContentScrolling property to the desired value in order to determine the behavior when the width should be bigger than the set. If you want the tooltip to resize accordingly you should set it to Default.

We are currently working on improving this behavior but for the time being some explicit size set is the best solution for the case.



Best wishes,
Svetlina
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
mww
Top achievements
Rank 1
Answers by
mww
Top achievements
Rank 1
Svetlina Anati
Telerik team
Share this question
or