RadControls for ASP.NET AJAX
When using server-side selection there will be no problems with viewstate disabled (see the Control state topic), however with client-side selection the selected item will be lost. The grid raises appropriate SelectedIndexChanged event with valid data as SelectedItems and SelectedIndexes.
To avoid such problems when the grid saves its settings in the control state (EnableViewState = false) and client-side selection we suggest you following workaround:
Telerik.Web.UI.GridItem item = null;
private void RadGrid1_SelectedIndexChanged(object sender, EventArgs e)
item = RadGrid1.SelectedItems;
private void RadGrid1_PreRender(object sender, EventArgs e)
if (item != null)
item.Selected = true;
Dim item As Telerik.Web.UI.GridItem = Nothing
Private Sub RadGrid1_SelectedIndexChanged(ByVal sender As Object, ByVal e As EventArgs)
item = RadGrid1.SelectedItems(0)
Private Sub RadGrid1_PreRender(ByVal sender As Object, ByVal e As EventArgs)
If (Not (item) Is Nothing) Then
item.Selected = True
Where RadGrid1_PreRender is the event handler for RadGrid1.OnPreRender event and RadGrid1_SelectedIndexChanged is the event handler for RadGrid1.OnSelectedIndexChanged event.