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

[Solved] Why are the properties undefined?

0 Answers 66 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
carlg
Top achievements
Rank 1
carlg asked on 16 Aug 2010, 06:52 PM
<script type="text/javascript">
        function onSelect(e) {
            var item = $(e.item);
            var treeview = $("#TreeView").data("tTreeView");
            var nameoftree = treeview.Name;
            alert(nameoftree );
        }
    </script>
The Name property is undefined and so is the selectedindex property.

How do I access these properties without getting undefined returned in my alert?

Tags
TreeView
Asked by
carlg
Top achievements
Rank 1
Share this question
or