This is a migrated thread and some comments may be shown as answers.

[Solved] Little error in the help

1 Answer 79 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Sébastien
Top achievements
Rank 2
Sébastien asked on 20 Oct 2009, 10:07 AM
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)

 Protected Sub RadGrid1_ItemCreated(ByVal sender As ObjectByVal 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.

1 Answer, 1 is accepted

Sort by
0
Daniel
Telerik team
answered on 22 Oct 2009, 03:55 PM
Hello Fichot,

We will update the mentioned help topic. Thank you for reporting this omission - I added Telerik points to your account.

Regards,
Daniel
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Grid
Asked by
Sébastien
Top achievements
Rank 2
Answers by
Daniel
Telerik team
Share this question
or