New to Telerik UI for ASP.NET AJAX? Download free 30-day trial

Control Lifecycle Overview

Here follows a description of the RadTreeList control lifecycle which elaborates on what the control does during the different phases of the page lifecycle.

Phase What does Telerik® UI for ASP.NET AJAX do
Initialize Telerik controls for ASP.NET AJAX initializes the settings needed during the lifetime of the incoming Web request. See Handling Inherited Events.
Load view state At the end of this phase, the ViewState property of Telerik controls for ASP.NET AJAX is automatically populated as described in Maintaining State in a Control.
Process postback data Process incoming form data and update properties accordingly. See Processing Postback Data.
Load Perform actions common to all requests, such as setting up a database query if you are using simple data-binding described in Simple vs Advanced data-binding topic. At this point, server controls presented in the controls tree are created and initialized, the state is restored, and form controls reflect client-side data. See Handling Inherited Events.
Send postback change notifications Telerik® UI for ASP.NET AJAX raises change events in response to state changes between the current and previous postbacks. See Processing Postback Data.
Handle postback events Telerik® UI for ASP.NET AJAX handles the client-side event that caused the postback and raise appropriate events on the server. See Capturing Postback Events.
Prerender Perform any updates before the output is rendered. Any changes made to the state of Telerik controls for ASP.NET AJAX in the prerender phase can be saved, while changes made in the rendering phase (two steps further) are lost. See Handling Inherited Events.
Save state The ViewState property of a control is automatically persisted to a string object after this stage. This string object is sent to the client and back as a hidden variable.For improving efficiency, a control can override the SaveViewState method to modify the ViewState property. See Maintaining State in aControl.
Render Telerik® UI for ASP.NET AJAX generates output to be rendered to the client.See Rendering an ASP.NET Server Control.
Dispose Perform any final cleanup before UI for ASP.NET AJAX is torn down. References to expensive resources such as database connections must be released in this phase.See Methods in ASP.NET Server Controls.
Unload Perform any final clean up before the control is torn down.

Any controls created after this phase will not be persisted in the ViewState and this will cause them work incorrectly.

In this article