Hello ,
I am trying to access controls in an edit form to render the visibility of certain controls I tried the following but cannot find the controls ,
what would be the proper method to access the controls?
I am trying to access controls in an edit form to render the visibility of certain controls I tried the following but cannot find the controls ,
Public
Sub
RadGrid1_ItemCommand(
ByVal
source
As
Object
,
ByVal
e
As
GridItemEventArgs)
Handles
RadGrid1.ItemEvent
If
TypeOf
(e.Item)
Is
GridEditFormInsertItem
Then
Dim
item
As
GridEditFormInsertItem =
CType
(e.Item, GridEditFormInsertItem)
Dim
panel
As
Panel =
DirectCast
(item.FindControl(
"Panel1"
), Panel)
Dim
cmbDataType
As
RadComboBox =
DirectCast
(item.FindControl(
"DataTypeDropDown"
), RadComboBox)
If
cmbDataType.SelectedValue =
"Choice"
Then
panel.Visible =
True
Else
panel.Visible =
False
End
If
End
If
what would be the proper method to access the controls?