Basically need a way to check that the newly inserted record does not already exist in the rad grid.
my insert command code looks like below. and it works fine for checking that not a blank record is inserted, I just need to add a check that a name does not already exist. Any help would be appreciated.
my insert command code looks like below. and it works fine for checking that not a blank record is inserted, I just need to add a check that a name does not already exist. Any help would be appreciated.
Protected
Sub cEventTypesGrid_InsertCommand(ByVal source As Object, ByVal e As Telerik.Web.UI.GridCommandEventArgs) Handles cEventTypesGrid.InsertCommand
Dim editedItem As GridEditableItem = TryCast(e.Item, GridEditableItem)
Dim vLogin As TableCell = editedItem("Name")
Dim vTxtLogin As String = (CType(vLogin.Controls(0), RadComboBox)).SelectedValue
If vTxtLogin = "" Then
Throw New Exception("Name cannot be blank.")
End If