Search code examples
asp.netjavascriptasp.net-ajaxpage-lifecyclecollapsiblepanelextender

Detect when all ASP.NET-generated Javascript has run


I currently have a page that contains a RadTreeView. On each node of the RadTreeView is an ASP.NET Ajax CollapsiblePanelExtender. In the code-behind I have certain panels expanded and certain panels collapsed based on some business logic. Is there a way to detect when ALL ASP.NET-generated Javascript (collapsing/expanding of CollapsiblePanelExtender) has run? I need to act on the elements but NOT until all expanding and collapsing has taken place.


Solution

  • The CollapsiblePanelExtender initializes by using Sys.Application.init Event. If you used the Sys.Application.load Event, you could guarantee your code ran after theirs.