ASP.NET WebForms

ResourceExpand event is called after a resource tree node is expanded by the user.

The event handling type can be set using ResourceExpandHandling property:

  • Disabled (the event will not be fired)
  • CallBack (ResourceExpand server-side event is called using a CallBack)
  • PostBack (ResourceExpand server-side event is called using a PostBack)
  • JavaScript (the event is handled on the client side using ResourceExpandJavaScript)

Note: If you want to load the resource child nodes dynamically, you should set Resource.ChildrenLoaded = false and handle LoadNode event. See also Dynamic resource tree loading.

Example

ResourceExpandHandling="JavaScript"
ResourceExpandJavaScript="alert('Resource ' + resource.name + ' expanded.');"

See also