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
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