Scroll

Server Event: Show all folders expanded

Use this server event to expand all folders automatically when entering the home page.

Note: This event uses a .NET assembly to take advantage of method recursion.

Global Event: OnAfterLoadReportsList

References:

  • WebReportsApi.dll,
  • WebReports.dll

Namespaces:

  • WebReports.Api.Common,
  • WebReports.UI.Controls

Code

public static void ExpandAllFolders(SessionInfo sessionInfo, TreeNodeCollection nodes)
{
  foreach (TreeNode node in nodes)
  {
    if (!node.Leaf) // Leaf nodes are reports
    {
      node.Expanded = true;
      ExpandAllFolders(sessionInfo, node.Nodes);
    }
  }
}

Hidden Article Information

Article Author
Exago Development
created 2017-05-23 13:25:17 UTC
updated 2017-06-19 16:39:36 UTC

Labels
folder, report, SAE, tree, child, expand, server event, events, example,
Have more questions? Submit a request