WebObjectTree Studio
Select dog breed:
  Reset
Retention Period:
The WebObjectTree retention period is used to determine how long the children item information is maintained on the client-side after it is retrieved. By default, WebObjectTree will store this information indefinitely or until the page is re-loaded.

To specify a retention period appropriate for your web application, you can set the property below. This sets a five second retention period. After this time, the children items will be discarded and the latest information will be retrieved the next time its parent item is expanded:

WebObjectTree.RetentionPeriod = 5; // seconds

Collapsing and then re-expanding the children after a five second wait time will demonstrate this re-loading by displaying the loading image and text string.

In this sample the WebObjectTree is allowing you to select a breed of dog, organized by common categories. Clicking the "Submit" button will display the full path for your selection below:
Click the "Reset" link to clear your selection.
Control being used:
View the code:
The code is available in the samples directory under:
/BasicFeatures
    /RetentionPeriod