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

[Solved] RadTreeView - ToolTip for Expand/Collapse Button

4 Answers 265 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
kavitha
Top achievements
Rank 1
kavitha asked on 09 Feb 2010, 01:38 PM
How to add tooltip for the expand/collapse  button of RadTreeView?
I want to add tooltip text  "Expand" and "Collapse" in the expand/collapse  button of RadTreeView?

Thanks in advance


4 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 10 Feb 2010, 06:34 AM
Hello Kavitha,

Try the following approach in order to add the tooltip for Expand/Collapse image in treeview.

ASPX:
 
<script type="text/javascript"
    function pageLoad() { 
        var treeView = $find("<%=RadTreeView1.ClientID%>"); 
        var node = treeView.get_nodes().getNode(0); 
        var length = treeView.get_allNodes().length; 
        for (var i = 0; i < length; i++) { 
            var toggleElement = treeView.get_allNodes()[i].get_toggleElement(); 
            if (toggleElement) { 
                toggleElement.alt = "Expand/Collapse"
                toggleElement.title = "Expand/Collapse"
            } 
        } 
    }  
</script> 

-Shinu.
0
kavitha
Top achievements
Rank 1
answered on 11 Feb 2010, 01:50 PM

Thanks for the reply Shinu.

But can we do it without javascript.
Do we have a property to do this?
For example in RadTreeView, we can do it easily by
"RadTreeView1.HierarchySettings.ExpandTooltip"



0
Veselin Vasilev
Telerik team
answered on 12 Feb 2010, 03:44 PM
Hi kavitha,

To my regret this is not possible. The only workaround is to set it with javascript.

Kind regards,
Veskoni
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
kavitha
Top achievements
Rank 1
answered on 12 Feb 2010, 05:07 PM
ok. Thanks for the reply.
You could note for future version :)


Tags
TreeView
Asked by
kavitha
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
kavitha
Top achievements
Rank 1
Veselin Vasilev
Telerik team
Share this question
or