Posted
on Apr 29, 2009
(permalink)
Hi Petio,
Thanks for your response, but I'm confused. What does using a web service have to do with asynchronous loading?
Basically what is needed is for the dock control to be able to refresh it's contents via AJAX, plus a way to tell it to do so.
For instance, suppose the dock knew it that it would contain a user control that implemented an IPortlet interface. The IPortlet interface exposes a method called Load(). This would allow a page full of portlets to load without doing any of the heavy-lifting, deferring that until they are told to invoke their controls' Load() methods.
So what is needed would seem to be:
1. A way for docks/portlets to register themselves (or be registered) as they are loaded onto the page so that they can all be informed when the page is loaded and it is time for them to get their contents. Or, maybe even more simply, just a way to tell the docks/portlets to do something via javascript.
2. Then, once the page is loaded, some event (body onload, maybe?) can instruct the portlets to invoke the Load() methods of the controls they contain.
So my my real question is how, using the various bits of Telerik plumbing, do I go about this?
-Al