SelectedIndexChanged event not firing of RadComboBox in

Posted by sarnaiksuraj-12609 under ASP.NET on 2/4/2013 | Points: 10 | Views : 7067 | Status : [Member] | Replies : 1
<telerik:GridBoundColumn DataField="Event" HeaderText="Event" AllowFiltering="true" CurrentFilterFunction="EqualTo" ShowFilterIcon="false">
<telerik:RadComboBox ID="cmbEventType" runat="server"></telerik:RadComboBox>

In Code Behind:

Protected Sub RadGrid1_ItemCreated(sender As Object, e As Telerik.Web.UI.GridItemEventArgs)
If TypeOf e.Item Is GridFilteringItem Then
Dim filterItem As GridFilteringItem = DirectCast(e.Item, GridFilteringItem)
Dim combo As RadComboBox = DirectCast(filterItem("ColumnUniqueName").FindControl("cmbEventType"), RadComboBox)
combo.DataSource = dtTable
combo.AutoPostBack = True

combo.SelectedIndexChanged += New RadComboBoxSelectedIndexChangedEventHandler(combo_SelectedIndexChanged)
End If
End Sub

Private Sub combo_SelectedIndexChanged(ByVal sender As Object, ByVal e As RadComboBoxSelectedIndexChangedEventArgs)

End Sub

But in item created event "combo.SelectedIndexChanged += New RadComboBoxSelectedIndexChangedEventHandler(combo_SelectedIndexChanged)" it gives me error
please help me how to fire SelectedIndexChanged event of radcombobox.


Posted by: Bhanubysani on: 2/4/2013 [Member] Starter | Points: 25


Please find the below URL for Rad Controls for ASP.NET AJAX Documentation.

I think you missed the autopostback="True" property for Rad Combo Box control.

Please try this.If error persists Please revert back.

Bhanu Prakash Bysani

sarnaiksuraj-12609, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response