I’m trying to find a tree using ASP.NET AJAX’s client-side framework. I also use jQuery for doing any JavaScript operation after the DOM is ready. my code is like:
$(function(){
var tree = $find('treeId');
});
Here, tree simply is null. But when I try to find the tree on click of one of elements, it’s not null:
$(function(){
$('saveButton').click(function(){
var tree = $find('treeId');
}):
});
this worked for me with Telerik controls:
see this http://www.telerik.com/help/aspnet-ajax/introduction-using-jquery.html