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

Showing RadToolTip For RadTreeView Node

3 Answers 138 Views
ToolTip
This is a migrated thread and some comments may be shown as answers.
Muhammad
Top achievements
Rank 1
Muhammad asked on 30 Dec 2010, 12:44 PM
Hi,

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))
            Next
            listOfUsersInToolTip.SortItems()
            e.UpdatePanel.ContentTemplateContainer.Controls.Add(listOfUsersInToolTip)
        Else


        End If




    End Sub

3 Answers, 1 is accepted

Sort by
0
Accepted
Cori
Top achievements
Rank 2
answered on 30 Dec 2010, 02:29 PM
Hello Muhammad,

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

listOfUsersInToolTip.Sort = RadListBoxSort.Ascending
listOfUsersInToolTip.SortItems()

I hope that helps.
0
Muhammad
Top achievements
Rank 1
answered on 30 Dec 2010, 04:10 PM
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 ... 
0
Svetlina Anati
Telerik team
answered on 03 Jan 2011, 12:33 PM
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:

http://demos.telerik.com/aspnet-ajax/tooltip/examples/tooltiptreeview/defaultcs.aspx

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,
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
ToolTip
Asked by
Muhammad
Top achievements
Rank 1
Answers by
Cori
Top achievements
Rank 2
Muhammad
Top achievements
Rank 1
Svetlina Anati
Telerik team
Share this question
or