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

User Control not Loading in Tooltipmanager

1 Answer 40 Views
ToolTip
This is a migrated thread and some comments may be shown as answers.
Subha
Top achievements
Rank 1
Subha asked on 04 Sep 2014, 02:31 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 not 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:55 AM

Hello Subha,

Please examine this help article that treats the most common issues related to this: http://www.telerik.com/help/aspnet-ajax/tooltip-troubleshooting-common-issues.html. Most notably, make sure that the user control has an ID; that there is no server error and that the tooltip manager itself is not part of the partial page rendering.

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