I have a grid with an edit form with textboxes that I need to disable based on a button that is clicked in the form. I'm wondering if there is a way to find the textboxes in the itemcommand events that get triggered by the buttons?
I've been trying to use something like:
Private Sub RadGrid2_ItemCommand(ByVal source As Object, ByVal e As Telerik.WebControls.GridCommandEventArgs) Handles RadGrid2.ItemCommand
If e.CommandName = "TimeInOutTextboxes" Then
Dim editedItem As GridEditableItem = CType(e.Item, GridEditableItem)
Dim txtTimeIn As TextBox = DirectCast(editedItem.FindControl("txtTimeIn"), TextBox)
but an error is thrown at "txtTimeIn.Enabled = False" because the control is not being found