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

Alt Text

1 Answer 72 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Stuart Hemming
Top achievements
Rank 2
Stuart Hemming asked on 29 Oct 2009, 07:15 AM
Is it possible to add alt text to the '+', '-' and checkbox images in a treeview?

--
Stuart

1 Answer, 1 is accepted

Sort by
0
Veselin Vasilev
Telerik team
answered on 02 Nov 2009, 01:26 PM
Hello Stuart Hemming,

This can be easily achieved by using jQuery. You can subscribe to the OnClientLoad event of the treeview and set the title attribute of the elements you need:

<script type="text/javascript">
    function onTreeLoad(sender, e) {
        var $ = $telerik.$;
        $(".rtPlus").attr("title", "expand");
        $(".rtMinus").attr("title", "collapse");
        $(".rtChk").attr("title", "check");
    }
</script>

Hope this helps.

All the best,
Veselin Vasilev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
TreeView
Asked by
Stuart Hemming
Top achievements
Rank 2
Answers by
Veselin Vasilev
Telerik team
Share this question
or