Monday, June 1, 2009

RadTreeView control is null in Javascript

If you have a RadTreeView control in a page, and in the footer javascript, you try to get it by "$find", it might return null. This is because it did not get time to initialize the tree object.

So, within a setTimeout, call another function after 200ms, and then inside that function, if the object is null, try calling "$find" again.

This worked for me.

No comments:

Post a Comment