User Control not Loading in Tooltipmanager

2 posts, 0 answers
  1. Subha
    Subha avatar
    4 posts
    Member since:
    Jun 2013

    Posted 04 Sep 2014 Link to this post

    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);
  2. Marin Bratanov
    Admin
    Marin Bratanov avatar
    3602 posts

    Posted 08 Sep 2014 Link to this post

    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.

     
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top