Hi,
I currently need to display a radprompt dialog "when the page loads". I cant just output some javascript during page_load, as this will be executed before the radwindowmanager is ready, which is also the case for observing dom:loaded or window.load.
As stated in this thread
which apparently works fine - but in AJAX callback environments this thread
http://vaultofthoughts.net/SysApplicationaddloadFiresOnEachCallback.aspx
and partly this one as well
http://www.tvidesign.co.uk/blog/sys.application.add_load-in-Firefox-3.aspx
suggests that the method will be called multiple times:
"It comes out that add_load fires on each callback and not only when the page loads for the first time. That is of course a problem if you want something to happen on page load only."
which is not what we want. We want to execute it at "load".
The problem is of course that we cant rely on testing when the dom or page is ready, as the telerik components are created with the MS AJAX framework and so we have to wait for the components to be ready. Could you introduce a "OnClientLoadCompleted" method on the RadWindowManager (and probably on the other compoents as well) - perhaps even a more "global" event mechanism that would let us know when the individual Telerik components or all of them are completed loading and are ready for interaction?
/Jan
I currently need to display a radprompt dialog "when the page loads". I cant just output some javascript during page_load, as this will be executed before the radwindowmanager is ready, which is also the case for observing dom:loaded or window.load.
As stated in this thread
http://www.telerik.com/community/forums/aspnet-ajax/window/using-radalert-as-server-side-messagebox.aspx
we are adviced to register the script we need to run "when the page loads" in a
Sys.Application.add_load( ... code ...);
which apparently works fine - but in AJAX callback environments this thread
http://vaultofthoughts.net/SysApplicationaddloadFiresOnEachCallback.aspx
and partly this one as well
http://www.tvidesign.co.uk/blog/sys.application.add_load-in-Firefox-3.aspx
suggests that the method will be called multiple times:
"It comes out that add_load fires on each callback and not only when the page loads for the first time. That is of course a problem if you want something to happen on page load only."
which is not what we want. We want to execute it at "load".
The problem is of course that we cant rely on testing when the dom or page is ready, as the telerik components are created with the MS AJAX framework and so we have to wait for the components to be ready. Could you introduce a "OnClientLoadCompleted" method on the RadWindowManager (and probably on the other compoents as well) - perhaps even a more "global" event mechanism that would let us know when the individual Telerik components or all of them are completed loading and are ready for interaction?
/Jan