I'm trying to do some client-side initialization that involves calling $find() on the ClientID of some RadComboBoxes.
My code is being run from an event-handler hooked to window load:
// My initialization stuff
When this code, $find(clientid) returns null.
If I move my initialization code to a window.setTimeout(), $find() works fine. So clearly the only problem is that the client-side code hasn't been initialized, when the window load handler executes.
When I browse the forums, I see recommendations to put the initialization code in a pageLoad(). Given the organization of the code in this project, that's not possible. (There can only be one pageLoad() function on a page - we have separate initialization functions for multiple user controls that may be included on a single page. We'd like to keep the initialization for each encapsulated inside the control, we don't want to pull all the initialization into a single page-level function.)
Are there any of the standard events that we can catch with Sys.UI.DomEvent to which we can add handlers that will fire after the telerik controls have been initialized?