Hi,
For some reason I can't get a reference to a control in the InsertCommand handler
This works for update:
Private Sub RadGrid1_UpdateCommand(ByVal source As Object, ByVal e As GridCommandEventArgs) Handles RadGrid1.UpdateCommand
Dim editItem As GridDataItem = DirectCast(e.Item, GridDataItem)
End Sub
But this does not:
Protected Sub RadGrid1_InsertCommand(ByVal source As Object, ByVal e As GridCommandEventArgs) Handles RadGrid1.InsertCommand
Dim insertItem As GridDataInsertItem = DirectCast(e.Item, GridDataInsertItem)
End Sub
I allways got this message:
Unable to cast object of type 'Telerik.Web.UI.GridCommandItem' to type 'Telerik.Web.UI.GridDataInsertItem'.
Help?
Thanks Laslo
For some reason I can't get a reference to a control in the InsertCommand handler
This works for update:
Private Sub RadGrid1_UpdateCommand(ByVal source As Object, ByVal e As GridCommandEventArgs) Handles RadGrid1.UpdateCommand
Dim editItem As GridDataItem = DirectCast(e.Item, GridDataItem)
End Sub
But this does not:
Protected Sub RadGrid1_InsertCommand(ByVal source As Object, ByVal e As GridCommandEventArgs) Handles RadGrid1.InsertCommand
Dim insertItem As GridDataInsertItem = DirectCast(e.Item, GridDataInsertItem)
End Sub
I allways got this message:
Unable to cast object of type 'Telerik.Web.UI.GridCommandItem' to type 'Telerik.Web.UI.GridDataInsertItem'.
Help?
Thanks Laslo