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

Manual Close + Shown from code

4 Answers 138 Views
ToolTip
This is a migrated thread and some comments may be shown as answers.
Roger Barnes
Top achievements
Rank 1
Roger Barnes asked on 02 Dec 2009, 08:03 PM
2009 Q3 Release of the controls

Since we updated to Q3, there is no X shown if Manual Close and shown from code, and regardless of having the manualclose set to true, the AutoHideDelay is not ignored, (the tooltip autohides after the specified time) the only way I could get the tooltip to remain visible was to set the AutoHideDelay to 0, then at least the tooltip stayed visible.  This does not involve any postbacks on the tooltip or anything, click a control, tooltip shown from code, and then after the autohidelay time elapse it's hidden.

This was not an issue until we recently upgraded to Q3.

4 Answers, 1 is accepted

Sort by
0
Svetlina Anati
Telerik team
answered on 07 Dec 2009, 02:54 PM
Hello Roger,
 
I built up a test demo based on your explanations but unfortunately to no avail - I was not able to reproduce the problem with the Q3 2009 release. Since you did not provide any code and more detailed explanations, I tested both with a RadToolTipManager and a separate RadToolTip but both are working as expected. I also tested with the obsolete ManualClose="true" instead of HideEvent="ManualClose" but again everything was fine. 

This being said, please examine my test page and let me know what modifications I should apply to reproduce the problem on my side. 

 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
Roger Barnes
Top achievements
Rank 1
answered on 09 Dec 2009, 04:02 PM

Thanks for taking the time to put the example together.

I'm showing the tooltip in codebehind versus Javascript like in your example.

With Telerik version 2009..02.0701.2009 the below works as expected and the X to close the tooltip is shown as expected.
The AutoCloseDelay="0" was added to workaround the issue that I'm seeing with 2009.3.1103.2009

As noted in my original post, with version 2009.02 everything worked as expected, after upgrading to 2009.3, there is no x shown in the upper right hand corner to close the tooltip, and the ManualClose isn't working at all, it's using the AutocloseDelay time, I was able to work around that issue by setting AutoCloseDelay to 0. 

    <telerik:RadToolTip ID="RadToolTipShipWeight" runat="server" ManualClose="True" Modal="False" 
        Title="Ship Weights" Position="MiddleLeft" RelativeTo="Element" ShowCallout="True" 
        ShowEvent="FromCode" Sticky="False" EnableViewState="True" ShowDelay="0" AutoCloseDelay="0">  
        <table class="BorderAll" cellspacing="0" cellpadding="5" width="200">  
            <tr> 
                <td class="Label" align="center">  
                    Unit<br /> 
                    Weight  
                </td> 
                <td class="Label" align="center">  
                    Ship<br /> 
                    Weight  
                </td> 
                <td> 
                    <asp:HyperLink ID="hplnkClose" CssClass="Link" runat="server" onclick="HideToolTip();">Cancel</asp:HyperLink> 
                </td> 
            </tr> 
            <tr> 
                <td align="center">  
                    <asp:TextBox ID="txtRow" Visible="false" runat="server"></asp:TextBox> 
                    <asp:TextBox ID="txtProductModelSizeOptionID" Visible="false" runat="server"></asp:TextBox> 
                    <asp:TextBox ID="txtBaseUnitID" Visible="false" runat="server"></asp:TextBox> 
                    <telerik:RadNumericTextBox ID="txtUnitWeight" runat="server" DataType="System.Decimal" 
                        Width="45" MaxValue="5000" MinValue="0" NumberFormat-AllowRounding="True" NumberFormat-DecimalDigits="2" 
                        Style="text-align: right;">  
                    </telerik:RadNumericTextBox> 
                </td> 
                <td align="center">  
                    <telerik:RadNumericTextBox ID="txtShipWeight" runat="server" DataType="System.Decimal" 
                        Width="45" MaxValue="5000" MinValue="0" NumberFormat-AllowRounding="True" NumberFormat-DecimalDigits="2" 
                        Style="text-align: right;">  
                    </telerik:RadNumericTextBox> 
                </td> 
                <td> 
                    <asp:LinkButton ID="lnkbUpdateShipWeights" runat="server">Update</asp:LinkButton> 
                </td> 
            </tr> 
        </table> 
    </telerik:RadToolTip> 

CodeBehind
   Private Sub rgBaseUnit_ItemCommand(ByVal source As Object, ByVal e As Telerik.Web.UI.GridCommandEventArgs) Handles rgBaseUnit.ItemCommand  
 
        Select Case e.CommandName.ToUpper  
            Case "CMDEDIT"  
                Dim lnkbEdit As LinkButton = CType(e.Item.FindControl("lnkbEdit"), LinkButton)  
                Me.RadToolTipShipWeight.IsClientID = True 
                Me.RadToolTipShipWeight.TargetControlID = lnkbEdit.ClientID  
                Me.txtRow.Text = Nothing 
                Me.txtProductModelSizeOptionID.Text = Nothing 
                Me.txtBaseUnitID.Text = Nothing 
                Me.txtUnitWeight.Text = Nothing 
                Me.txtShipWeight.Text = Nothing 
 
                Dim item As Telerik.Web.UI.GridDataItem = CType(e.Item, Telerik.Web.UI.GridDataItem)  
                Me.txtRow.Text = item.ItemIndex.ToString  
                Me.txtBaseUnitID.Text = item("bu_BaseUnitID").Text  
                Me.txtUnitWeight.Text = item("bu_UnitWeight").Text  
 
                Me.txtShipWeight.Text = lnkbEdit.Text  
 
                Me.RadToolTipShipWeight.Show()  
        End Select  
    End Sub 

0
Accepted
Svetlina Anati
Telerik team
answered on 14 Dec 2009, 09:04 AM
Hello Roger,
 
I built up a test demo based on your code and I was able to reproduce the issue. It comes from teh fact that you have used the obsolete Sticky and manualClose proeprties - note that they are not only obsolete but tehre is also a logical problem using them in combination - a tooltip can be either sticky or with manual close.

This being said, I modified your RadToolTip definition in the following manner:

<telerik:RadToolTip ID="RadToolTipShipWeight" runat="server" HideEvent="manualClose"
         Modal="False" Title="Ship Weights" Position="MiddleLeft" RelativeTo="Element"
         ShowCallout="True" ShowEvent="FromCode" EnableViewState="True" ShowDelay="0"
         AutoCloseDelay="0">

and everything staretd working as expected.

I attached my test page to the thread for your reference - let me know how it goes. 


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
Roger Barnes
Top achievements
Rank 1
answered on 14 Dec 2009, 07:30 PM
I removed the Manualclose="True" and Sticky="True" and replaced with HideEvent="ManualClose" the X for close is now shown as expected.

Thanks Svetlina

Roger
Tags
ToolTip
Asked by
Roger Barnes
Top achievements
Rank 1
Answers by
Svetlina Anati
Telerik team
Roger Barnes
Top achievements
Rank 1
Share this question
or