Showing RadToolTip For RadTreeView Node

4 posts, 1 answers
  1. Muhammad
    Muhammad avatar
    87 posts
    Member since:
    Oct 2012

    Posted 30 Dec 2010 Link to this post


    I am using RadToolTipManager for showing ToolTip for my RadTreeView Nodes. I want to show tooltip for my specific RadTreeView Node not for every Node. Is there anyway that I can achieve with some ajaxrequest so that I can hide my tooltip or show for that node which I would like to show. 

    I am having one more problem that on AjaxUpdate I am sorting my Radlistbox items but they do not sort. Any help would be really appreciated.

    Protected Sub RadToolTipmanager_AjaxUpdate(ByVal sender As Object, ByVal e As ToolTipUpdateEventArgs)

            Dim roleName As String = e.Value
            Dim listOfUsersInToolTip As New RadListBox
            listOfUsersInToolTip.Width = 150
            listOfUsersInToolTip.Height = 200
            Dim usersList As ArrayList = rc.GetUserRolesByRoleName(DNN.GetPMB(Me).PortalId, roleName)
            If usersList.Count <> 0 Then
                For Each user As DotNetNuke.Entities.Users.UserRoleInfo In usersList
                    listOfUsersInToolTip.Items.Add(New RadListBoxItem(user.FullName, user.UserID))

            End If

        End Sub
  2. Answer
    Cori avatar
    562 posts
    Member since:
    Jul 2010

    Posted 30 Dec 2010 Link to this post

    Hello Muhammad,

    Have you tried setting the sort order for the RadListBox. Like so:

    listOfUsersInToolTip.Sort = RadListBoxSort.Ascending

    I hope that helps.
  3. Muhammad
    Muhammad avatar
    87 posts
    Member since:
    Oct 2012

    Posted 30 Dec 2010 Link to this post

    Thanks for your reply ... but how would I show tooltip for my particual radtreenode because I don't want to show tooltip for each and every node ... Please provide me some quick solution ... 
  4. Svetlina Anati
    Svetlina Anati avatar
    2795 posts

    Posted 03 Jan 2011 Link to this post

    Hi Muhammad,

     Indeed, the RadTreeNodes do not have client IDs. However, you can either assign such on the server or create the tooltip dynamically on the client. For such cases we have prepared the following demo which shows both the approaches:

    If you want to tooltipify only particular nodes, you should add the only their ClientIDs (which you programmatically set) to the TargetControls collection or create dynamically tooltips only when they are hovered - in this manner the other nodes will not get tooltipified.

    Note, also, that if you have ajaxified the sorting, you should make sure that you also update teh tooltip manager with AJAX when sorting.

    Please, examine the code and use it as a start point for your implementation.

    On a side note, when you install RadControls, our online examples projects are automatically installed on your computer and you can not only examine their full source code, but also extend them further in order to meet your requirements.

    You can open the demos from here:

    Start\Programs\Telerik\RadControls for ASPNET AJAX\Open Sample WebSite In VisualStudio

    The actual location on your hard disk is the following one:

    C:\Program Files\Telerik\RadControls for ASPNET AJAX \Live Demos

    I hope that this information is helpful, let me know if you have additional questions or you need further assistance.

    Best wishes,
    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.
Back to Top