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

control not ajaxified for tooltipmanager

3 Answers 46 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Judith
Top achievements
Rank 1
Judith asked on 11 Jan 2011, 09:24 PM
I have a page that has a usercontrol that contains a grid. When the user selects edit on a gridrow another 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) on the control that is used for editing. Here is the aspx for the edit user control

<

 

telerik:RadToolTipManager ID="PLToolTipManager" runat="server" Position="BottomCenter" Animation="Fade" 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);

 

 

 

 

}

 

The OnAjaxUpdateToolTip event never happens.



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

 

3 Answers, 1 is accepted

Sort by
0
Svetlina Anati
Telerik team
answered on 14 Jan 2011, 09:57 AM
Hi Judith,

 I already answered your support ticket and for your convenience and for others who might have the same question I pasted it below:

Your tooltipifying code seems to be correct and I am not sure what is causing the issue and I will need to examine a sample demo which shows your exact setup and configuration. However, before you take time and effort to prepare and send such, I would like to inform you that after we make this setup work, it will not work as you expect and the first tooltip will hide once the second one shows. This is due to the fact that only a single tooltip might be visible at any given time. This behavior is by design and will not be changed as changing it would defy the purpose of the control.

The purpose of a tooltip is to provide additional information for a given element. It is not meant to be used as a popup control or as a draggable panel. For this purpose we provide RadWindow and RadDock controls. Both of these controls allow more than one visible element of the kind on the page.

Our suggestion is to consider using RadWindow and RadDock controls.

Please, let us know how you decide to proceed and send us a sample demo if needed along with detailed explanation and instructions and we will do our best to help.

Regards,
Svetlina
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 14 Jan 2011, 04:42 PM
I am not sure what you mean by the following
<<. However, before you take time and effort to prepare and send such, I would like to inform you that after we make this setup work, it will not work as you expect and the first tooltip will hide once the second one shows. This is due to the fact that only a single tooltip might be visible at any given time. >>

I really only want one tooltip to show at a time depending on what control the user mouses over at  any given time. I do not need more than one tooltip to be displayed at the same time. In my grid I have more that one element in the gridrow tooltipified and it works fine.

Thank you
0
Svetlina Anati
Telerik team
answered on 19 Jan 2011, 02:30 PM
Hi Judith,

 I initially understood that you have a control which you show in a RadToolTip and you want to show a RadToolTip in this control - the result of this is 2 RadToolTip (one which holds the control and one which is inside it). However, as far as I understand now after this explanation and after reading again your initial post, you probably mean that the second tooltip should be for another control inside the main grid, am I correct?

If so, you should reference the desired control (checkbox) and add it to the TargetControls collection. Since you will load different control inside the second tooltip I suggest to use a separate RadToolTipManager for it to avoid ViewState problems. having two RadToolTipManager will separate your logic and it will not influence the performance  considerably.

In case you need further assistance, please prepare a sample, fully runnable reproduction demo and send it to us along with detailed reproduction steps and we will modify it in order to meet your requirements.

Kind regards,
Svetlina
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.
Tags
Ajax
Asked by
Judith
Top achievements
Rank 1
Answers by
Svetlina Anati
Telerik team
Judith
Top achievements
Rank 1
Share this question
or