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

TooltipManager User Control not Loading from Grid DetailView

1 Answer 2 Views
ToolTip
This is a migrated thread and some comments may be shown as answers.
Subha
Top achievements
Rank 1
Subha asked on 03 Sep 2014, 09:13 PM
I am using RadTooltipmanager for a control in detailview section of a radgrid. Tooltipmanager is bound in item_databound event and associated with user control in Ajax update event. Tooltipmanager is properly invoked and page_load event of the user control is also fired but still user control is loaded in the tooltipmanager.

Code in item_databound event ->
    if (e.Item.ItemType == GridItemType.Item || e.Item.ItemType == GridItemType.AlternatingItem)
                    {
                        Control target = e.Item.FindControl("imgFinal");
                        if (!Object.Equals(target, null))
                        {
                            if (!Object.Equals(this.RadToolTipManager1, null))
                            {
                                DataRowView currentRow = (DataRowView)e.Item.DataItem;
                                //Add the button (target) id to the tooltip manager

                                ToolTipTargetControl tltpCntrl = new ToolTipTargetControl(target.ClientID, ((Image)target).ImageUrl, true);
                                try
                                {
                                    this.RadToolTipManager1.TargetControls.Remove(tltpCntrl);
                                }
                                catch (Exception ex)
                                {

                                }
                                this.RadToolTipManager1.TargetControls.Add(tltpCntrl);
                            }
                        }
                    }



Ajax Update event 

 Control usrControl = Page.LoadControl("~/Common/Controls/EPScoring.ascx");
                e.UpdatePanel.ContentTemplateContainer.Controls.Add(usrControl);




























1 Answer, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 08 Sep 2014, 10:56 AM

Hello,

I have already added my answer to your other thread on the same issue: http://www.telerik.com/forums/user-control-not-loading-in-tooltipmanager. I would advise that you post only one thread per case because duplicating them only means spreading the same information in two threads, which makes them harder to track and work with.


Regards,

Marin Bratanov
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
ToolTip
Asked by
Subha
Top achievements
Rank 1
Answers by
Marin Bratanov
Telerik team
Share this question
or