Skip to main content

Callbacks

The ASPxTreeView control supports AJAX technology, by implementing the ability to load the content of an ASPxTreeView from the server via a callback. This approach allows the ASPxTreeView to avoid the initial transfer of all its node data to the client, optimizing the page’s load time.

In order to enable the use of callbacks, ASPxTreeView’s EnableCallBacks property should be set to true and the AutoPostBack property should be set to false. In this instance, the contents of the collapsed nodes are not represented on the client. When a node is expanded for the first time, its content is retrieved from the server, and then cached on the client. The next time the node is expanded, its content is taken from the client and no callback to the server is performed.