Hello Sir,
I call tree client-side object on "window.onload" event.
However, it return null...( I think the reason is the tree object is not initialized yet )
Therefore, I put my code on "pageLoad" event, and it works well.
My question is where is the best place that my code will be executed after the tree client-side object is initialized??
Moreover, I have read the document of asp.net ajax. It say
"Raised after all scripts have been loaded and all objects in the application that are created by using $create are initialized. The load event is raised for all postbacks to the server, which includes asynchronous postbacks."
I have put some code inside the pageLoad event, but it doesn't be executed after loading new nodes (load-on-demand, with webservice)
Why? I thought it should be executed after asynchronous postbacks.
Thank you
I call tree client-side object on "window.onload" event.
However, it return null...( I think the reason is the tree object is not initialized yet )
Therefore, I put my code on "pageLoad" event, and it works well.
My question is where is the best place that my code will be executed after the tree client-side object is initialized??
Moreover, I have read the document of asp.net ajax. It say
"Raised after all scripts have been loaded and all objects in the application that are created by using $create are initialized. The load event is raised for all postbacks to the server, which includes asynchronous postbacks."
I have put some code inside the pageLoad event, but it doesn't be executed after loading new nodes (load-on-demand, with webservice)
Why? I thought it should be executed after asynchronous postbacks.
Thank you