Let's say I have the following Grid.
with the following Handler.
Execution never reaches this event handler. What am I missing, or how could I better solve this problem?
I've also tried attaching the handler in the ItemDataBound event, but this also has not worked.
<
telerik:RadGrid
runat
=
"server"
ID
=
"MyGrid"
>
<
MasterTableView
>
<
Columns
>
<
telerik:GridTemplateColumn
UniqueName
=
"DDLCol"
HeaderText
=
"PSO Standard Setting"
>
<
ItemTemplate
>
<asp:
DropDownList
runat
=
"server" AutoPostBack="True"
ID
=
"DDL"
OnSelectedIndexChanged
=
"DDL_SelectedIndexChanged"
/>
</
ItemTemplate
>
</
telerik:GridTemplateColumn
>
</
Columns
>
</
MasterTableView
>
</
telerik:RadGrid
>
with the following Handler.
Protected
Sub
DDL_SelectedIndexChanged(
ByVal
sender
As
Object
,
ByVal
e
As
EventArgs)
'Do Some stuff here.
End
Sub
Execution never reaches this event handler. What am I missing, or how could I better solve this problem?
I've also tried attaching the handler in the ItemDataBound event, but this also has not worked.
Private
Sub
MyGrid_ItemDataBound(sender
As
Object
, e
As
Telerik.Web.UI.GridItemEventArgs)
Handles
MyGrid.ItemDataBound
If
TypeOf
(e.Item)
Is
GridDataItem
Then
Dim
item
As
GridDataItem =
CType
(e.Item, GridDataItem)
Dim
DDL
As
DropDownList = item.FindControl(
"DDL"
)
'databind the drop down list (this works fine of course)
AddHandler
DDL.SelectedIndexChanged,
AddressOf
DDL_SelectedIndexChanged
End
If
End
Sub