New to Telerik UI for ASP.NET AJAX? Start a free 30-day trial
Init Event
Fired when the server control is initialized, which is the first step in its lifecycle.
Event Parameters
-
(object)
sender- The control that fires the event
-
(EventArgs)
e- Does not contain arguments
Attaching the event
In the Markup
ASP.NET
<telerik:RadGrid ID="RadGrid1" runat="server" OnInit="RadGrid1_Init">
</telerik:RadGrid>
In the Code behind
C#
protected void Page_Init(object sender, EventArgs e)
{
RadGrid1.Init += RadGrid1_Init;
}
The event handler
C#
protected void RadGrid1_Init(object sender, EventArgs e)
{
//execute some logic
}