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

RadToolTip Dynamic hyding and showing client errors

4 Answers 126 Views
ToolTip
This is a migrated thread and some comments may be shown as answers.
Mark
Top achievements
Rank 1
Mark asked on 13 May 2008, 03:54 PM
I have a RadTextBox which is dynamically hidden and shown.  I also have a RadToolTip for this textbox.  The problem occurs when i am dynamically hiding the text box which has the tool tip.  I get client errors.  This doesnt always occour but i think it is if the tool tip is open when the textbox is been hidden.  In the main page i am using i get 'style' is null or not an object.  In the example i have put together for posting i get 'offsetParent' is null or not an object.  Can anyone advise how i might get round this. 

Thanks for the help.

Mark.

<telerik:RadToolTip runat="server" ID="rttATMOk" Name="rttATMOk" Sticky="true" Position="MiddleRight"

Width="200px" Animation="Fade" ShowEvent="OnMouseOver" ShowDelay="0" RelativeTo="Element"

EnableEmbeddedSkins="False" Skin="B2C" OffsetX="52" TargetControlID="rcbATMOk"

Title="ATM Guidelines">

<table class="helptable">

<tr>

<td>

Test..........

Test..........

Test..........

Test..........

Test..........

Test..........

Test..........

Test..........

Test..........

Test..........

Test..........

Test..........

Test..........

Test..........

Test..........

</td>

</tr>

</table>

</telerik:RadToolTip>

<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" OnAjaxRequest="RadAjaxManager1_AjaxRequest"

OnAjaxSettingCreating="RadAjaxManager1_AjaxSettingCreating" DefaultLoadingPanelID="RadAjaxLoadingPanel1">

<AjaxSettings>

<telerik:AjaxSetting AjaxControlID="rcbATM">

<UpdatedControls>

<telerik:AjaxUpdatedControl ControlID="rttATMOk" LoadingPanelID="RadAjaxLoadingPanel1" />

</UpdatedControls>

</telerik:AjaxSetting>

<telerik:AjaxSetting AjaxControlID="PHMain">

<UpdatedControls>

<telerik:AjaxUpdatedControl ControlID="PHMain" LoadingPanelID="RadAjaxLoadingPanel1" />

</UpdatedControls>

</telerik:AjaxSetting>

</AjaxSettings>

</telerik:RadAjaxManager>

<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Height="75px"

Width="100%" Transparency="50" HoizontalAlign="Right">

<img alt="Loading..." src='RadControls/Ajax/Skins/Default/loading2.gif' style="border: 0px;" />

</telerik:RadAjaxLoadingPanel>

<asp:PlaceHolder runat="server" id="PHMain">

<fieldset>

<ol>

<li>

<label class="halfLabel" for="name">

Do you have an ATM on the premises ?

</label>

<telerik:RadComboBox Width="265px" ID="rcbATM" runat="server" RadComboBoxImagePosition="Right"

AutoPostBack="true" OnSelectedIndexChanged="rcbATM_SelectedIndexChanged" EnableEmbeddedSkins="False"

Skin="B2C">

<Items>

<telerik:RadComboBoxItem runat="server" Text="No" Value="No" />

<telerik:RadComboBoxItem runat="server" Text="Yes" Value="Yes" />

</Items>

<CollapseAnimation Type="OutQuint" />

<ExpandAnimation Type="OutQuart" />

</telerik:RadComboBox>

</li>

<li runat="server" id="PHATM" visible="false">

<label class="halfLabel" for="name">

Does the operation of the ATM fall within our standard guidelines ?

</label>

<telerik:RadComboBox Width="265px" ID="rcbATMOk" runat="server" RadComboBoxImagePosition="Right"

EnableEmbeddedSkins="False" Skin="B2C">

<Items>

<telerik:RadComboBoxItem runat="server" Text="No" Value="No" />

<telerik:RadComboBoxItem runat="server" Text="Yes" Value="Yes" Selected="true" />

</Items>

<CollapseAnimation Type="OutQuint" />

<ExpandAnimation Type="OutQuart" />

</telerik:RadComboBox>

</li>

</ol>

</fieldset>

</asp:PlaceHolder>

public

void RadAjaxManager1_AjaxRequest(object sender, AjaxRequestEventArgs e)

{

}

protected void RadAjaxManager1_AjaxSettingCreating(object sender, AjaxSettingCreatingEventArgs e)

{

e.UpdatePanel.RenderMode =

UpdatePanelRenderMode.Inline;

}

protected void rcbATM_SelectedIndexChanged(object o, RadComboBoxSelectedIndexChangedEventArgs e)

{

PHATM.Visible = (rcbATM.SelectedValue ==

"Yes");

}

protected void Go_Click(object sender, EventArgs e)

{

PHMain.Visible =

true;

}

4 Answers, 1 is accepted

Sort by
0
Mark
Top achievements
Rank 1
answered on 13 May 2008, 04:00 PM
BTW I am on 2008.1.415.20

Thanks

Mark
0
Georgi Tunev
Telerik team
answered on 14 May 2008, 01:33 PM
Hi Mark,

Can you please send us a sample project where we can reproduce the problem? Just make sure that the project can be run and attach it to the support ticket - we will check it right away and get back to you with an appropriate solution.



Best wishes,
Georgi Tunev
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Panchapakesan Subramanian
Top achievements
Rank 1
answered on 30 Dec 2008, 08:04 AM
Was this issue resolved? I am also facing the same issue. If the solution has been found, please let me know. BTW, this issue happens only in IE6. No issues with IE7 or Firefox...The version I use is 2008_3_1105
0
Svetlina Anati
Telerik team
answered on 30 Dec 2008, 04:57 PM
Hello guys,

I built up a test demo project based on the provided code, I tested it with the 2008.1 415 version of RadControls
and I was able to reproduce the problem which is caused by hiding and showing the target control of the tooltip as Mark correctly assumed himself. However, this version is very old and a lot of improvements and bugfixes were applied to RadControls since it was released and this problem is already fixed. I tested the very same demo project with the latest build, namely 2008.3.1125 and everything worked as expected, no error was thrown.

Panchapakesan, I tested the sample demo with the 2008.3.1105 version of RadControls and under IE6 but I was not able to reproduce the problem - that is why I assume that even if you get a similar error, it is caused by a different setup and I will need to examine this setup. Please, upgrade to the latest built of RadControls and if the problem still persists, download the attached test demo, modify it in order to reproduce the issue, open a new support ticket and send it to me along with detailed reproduction instructions and explanations.



Kind regards,
Svetlina
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
ToolTip
Asked by
Mark
Top achievements
Rank 1
Answers by
Mark
Top achievements
Rank 1
Georgi Tunev
Telerik team
Panchapakesan Subramanian
Top achievements
Rank 1
Svetlina Anati
Telerik team
Share this question
or