This is a migrated thread and some comments may be shown as answers.
Subscribe to client api event after page loads
1 Answer 15 Views
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Jordan
Top achievements
Rank 1
Jordan asked on 15 Nov 2010, 06:51 AM
My site has a left tree for navigation and a middle area that is dynamically loaded after the tree.  Is it possible to subscribe to the treeview select event from the middle area from javascript after the page has loaded?

1 Answer, 1 is accepted

Sort by
0
Alex Gyoshev
Telerik team
answered on 15 Nov 2010, 03:47 PM
Hi Jordan,

Yes, you can dynamically subscribe to events like this:

var $treeview = $('#TreeView'); // or $('.t-treeview:first') or some other selector
$treeview.bind('select', function(e) {
    alert($treeview.data('tTreeView').getItemText(e.item));
})
;

Kind regards,
Alex Gyoshev
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
Tags
TreeView
Asked by
Jordan
Top achievements
Rank 1
Answers by
Alex Gyoshev
Telerik team
Share this question
or