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

tooltip disappearing

8 Answers 105 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Judith
Top achievements
Rank 1
Judith asked on 01 Feb 2011, 05:15 PM

Posted on Jan 11, 2011 (permalink)

I have a page that contains a grid. When the user selects edit on a gridrow a user control is instantiated. I have used radtooltipmanager for items on the gridrow and that is working fine. I would like to tooltipify one of the controls ( a checkbox) in the formview that is used for editing. The tooltip works fine on the gridrow. Then I try to  use the same tooltip on one of the controls on the edit formview and the tooltip looks like it is goiing to work. - you see the outline of the tooltip and then it disappears. I even set the property of the tooltip to manual close but it disappears anyway. the Tooltipmanager invokes the same control on the gridrow as on the control on the formview. I stepped through the code and it does go thru the prerender and pageload of the usercontrol for the tooltip but then it disappears.

Any ideas why that would be happening.
Here is the aspx for the edit user control

<

telerik:RadToolTipManager ID="PLToolTipManager" runat="server" Position="BottomCenter" HideEvent="ManualClose"

 

 

 OnAjaxUpdate="OnAjaxUpdateToolTip" Skin="Web20" Width="380px" Height="250px" Style="font-size: 18px; text-align: center; font-family: Arial;">
</telerik:RadToolTipManager>

<telerik:RadAjaxManagerProxy ID="RadAjaxManager3" runat="server">
<AjaxSettings>
<telerik:AjaxSetting AjaxControlID="fvEdit">
<UpdatedControls>
<telerik:AjaxUpdatedControl ControlID="chkPL" />
<telerik:AjaxUpdatedControl ControlID="PLToolTipManager" />
</UpdatedControls>
</telerik:AjaxSetting>
</AjaxSettings>
</
telerik:RadAjaxManagerProxy>

I used a proxy because I already have an Ajax manager on the page with the grid. Here is the aspx for the grid

Here is the code behind that adds the control to the tooltiplist

protected void chkPLOnDataBinding(object sender, EventArgs e)

{

 CheckBox chkPL = (CheckBox)sender;
string myClientID = chkPL.ClientID;
R
adToolTipManager RadToolTipManager1 = (RadToolTipManager)this.FindControl("PLToolTipManager");
int itemid = (int)fvEdit.DataKey.Value;
PLToolTipManager.TargetControls.Add(myClientID, itemid.ToString(),
true);

 }

 Here is the aspx code of the page with the grid. - this works fine

<

telerik:RadAjaxManager ID="RadAjaxManager1"

runat="server">

 

 

<AjaxSettings>

 

 <telerik:AjaxSetting AjaxControlID="RadGrid1">

 

  

 

<UpdatedControls>

 

 

<telerik:AjaxUpdatedControl ControlID="RadGrid1" />

 

 

<telerik:AjaxUpdatedControl ControlID="RadToolTipManager1" />

  

 

</UpdatedControls>

 

 

</telerik:AjaxSetting>

 

 

</AjaxSettings>

</telerik:RadAjaxManager>

 

 

 

<telerik:RadToolTipManager ID="RadToolTipManager1" OffsetY="-1" HideEvent="LeaveToolTip"

 

 

 

Width="200" Height="200" runat="server" EnableShadow="true" OnAjaxUpdate="OnAjaxUpdate" RelativeTo="Element"

 

Position="MiddleRight">

 

 

</telerik:RadToolTipManager>

I would really appreciate help with this. I have spent many hours on this already
Thanks
Judith

 

 

 

8 Answers, 1 is accepted

Sort by
0
Maria Ilieva
Telerik team
answered on 04 Feb 2011, 02:18 PM
Hello Judith,

Could you please test the application by disabling the Ajax on the page and verify what the result is?

Regards,
Maria Ilieva
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
0
Judith
Top achievements
Rank 1
answered on 04 Feb 2011, 05:47 PM
Thank you for your response. I am not that familiar with ajax so when you say disable Ajax on the page, how exactly do you mean I should do that?
Thanks
Judy
0
Maria Ilieva
Telerik team
answered on 08 Feb 2011, 03:26 PM
Hello Judith,

Please set the EnableAjax property for the main RadAjaxManager to "false" and also remove the setting from the RadAjaxManager proxy. Let me know how it goes.

Kind regards,
Maria Ilieva
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
0
Judith
Top achievements
Rank 1
answered on 08 Feb 2011, 04:08 PM
That worked - but what does that mean as far as the rest of the page is concerned , how is it working without ajax? Is it doing a postback?
Thank you
Judith
0
Maria Ilieva
Telerik team
answered on 10 Feb 2011, 04:01 PM
Hello Judith,

In order to avoid postback you could wrap the RadGrid control and the RadToolTipManager into RadAjaxPanel or regular asp UpdatePanel.


Greetings,
Maria Ilieva
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
0
Travis
Top achievements
Rank 1
answered on 15 Feb 2011, 11:38 PM
Disabling AJAX worked for me in this scenario, except I *need* ajax to update my grid results.

Wrapping in update panel didn't do diddly for me.  PLease help!

Is there another way to do this?
0
Maria Ilieva
Telerik team
answered on 18 Feb 2011, 01:28 PM
Hi Judith,

I would suggest you to open a regular support ticket and send us sample runnable version of your application. Thus we will be able to test it locally, further investigate on the problem you are facing and provide proper solution for this issue.


Regards,
Maria Ilieva
the Telerik team
0
Travis
Top achievements
Rank 1
answered on 18 Feb 2011, 04:42 PM
This is a pretty massive solution...  I was hoping someone might have more insight since folks posted on this topic before.
Tags
Ajax
Asked by
Judith
Top achievements
Rank 1
Answers by
Maria Ilieva
Telerik team
Judith
Top achievements
Rank 1
Travis
Top achievements
Rank 1
Share this question
or