Hi Telerik Team,
I would like to report an error in the help of RadGrid : http://www.telerik.com/help/aspnet-ajax/grdvalidation.html
In the first VB.Net sample code, the handle clause is missing (Handles RadGrid1.ItemCreated)
Cheers,
S.F.
I would like to report an error in the help of RadGrid : http://www.telerik.com/help/aspnet-ajax/grdvalidation.html
In the first VB.Net sample code, the handle clause is missing (Handles RadGrid1.ItemCreated)
| Protected Sub RadGrid1_ItemCreated(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridItemEventArgs) Handles RadGrid1.ItemCreated |
| If (TypeOf e.Item is GridEditableItem AndAlso e.Item.IsInEditMode) Then |
| Dim item As GridEditableItem = CType(e.Item,GridEditableItem) |
| Dim editor As GridTextBoxColumnEditor = CType(item.EditManager.GetColumnEditor("ContactName"),GridTextBoxColumnEditor) |
| Dim cell As TableCell = CType(editor.TextBoxControl.Parent,TableCell) |
| Dim validator As RequiredFieldValidator = New RequiredFieldValidator |
| editor.TextBoxControl.ID = "ID_for_validation" |
| validator.ControlToValidate = editor.TextBoxControl.ID |
| validator.ErrorMessage = "*" |
| cell.Controls.Add(validator) |
| End If |
| End Sub |
Cheers,
S.F.