Hello,
I am working on a fairly complex page that causes a lot of traffic on the server. Me and my teammates have decided to preload certain sections of the page and only load the other sections upon user actions (please note that every section is a collapsible panel). To do so, every section has been encapsulated in the form of a UserControl and is dynamically loaded through the Page_Load event.
Now, I would like to only load these controls in my panels that are expaned by default when I load my page and load all other controls when a user expands the panel in which the given control is nested. I would then display a loading circle for longer database accesses, if there are any. Of course, this would all be done in server side code.
I noticed that there are no OnExpand or OnCollapse events on the CollapsiblePanelExtender and my teammates and I would prefer using a solution that would not imply modifying the Toolkit source code. Are there any suggestions on how I can fire events upon expanding an ASP.NET AJAX CollapsiblePanel?
I've Googled around a fair amount but I can't seem to find a suitable solution.
Note : I am using the latest version of the Toolkit, Visual Studio 2008, C# Code behind and the 3.5 .NET Framework.
As usual, any suggestions, advice or interesting links are more than welcome.
Regards,
Ian Bussières.