I was having some trouble getting my checkbox slection to have a oncheck event that could be used to restrict the grid to have a single checkbox selected at any given time and process the change as soon as the value changed not after leaving the field. This is what I came up with.
Private Sub rgridAffinityPrograms_CellEditorInitialized(ByVal sender As Object, ByVal e As Telerik.WinControls.UI.GridViewCellEventArgs) Handles rgridAffinityPrograms.CellEditorInitialized
Dim editor As RadCheckBoxEditor = TryCast(e.ActiveEditor, RadCheckBoxEditor)
AddHandler (editor.ValueChanged), AddressOf editor_ValueChanged
End Sub
Private Sub editor_ValueChanged(ByVal sender As Object, ByVal e As EventArgs)
rgridAffinityPrograms.EndEdit()
End Sub
Private Sub rgridAffinityPrograms_CellValueChanged(ByVal sender As System.Object, ByVal e As Telerik.WinControls.UI.GridViewCellEventArgs) Handles rgridAffinityPrograms.CellValueChanged
If e.ColumnIndex = 0 And sender.ToString = "Telerik.WinControls.UI.GridCheckBoxCellElement" Then
Dim chk As GridCheckBoxCellElement = sender
If chk.Value = True Then
For Each row As GridViewRowInfo In rgridAffinityPrograms.Rows
If row.Index <> e.RowIndex Then
row.Cells("IsSelected").Value = False
End If
Next
End If
End If
End Sub