.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Home >> Forum >> ASP.Net >> Post New QuestionBookmark and Share Subscribe to Forum

OnselectedIndexChanged event is not firing for RadCombobox in Gridview

Posted By: jayanthi     Posted Date: December 16, 2010    Points:2   Category :ASP.Net
I have a radCombobox in gridview, based on combobox selected value i have to load checkedlistbox. Radcombobox is in EmptyDataTemplate as there is no records.

My code:

.ASPX Code
<telerik:RadComboBox ID="empty_cmbCategory" AllowCustomText="True" MarkFirstMatch="true" Skin="Outlook" Text="<--Select-->" Width="203px" runat="server" AutoPostBack="true" OnSelectedIndexChanged="empty_cmbCategory_SelectedIndexChanged">

.VB Code
Protected Sub gView_DataBound(ByVal sender As Object, ByVal e As System.EventArgs) Handles gView.DataBound
Dim empty_cmbCategory As RadComboBox
empty_cmbCategory = TryCast(gView.Controls(0).Controls(0).FindControl("empty_cmbCategory"), RadComboBox)
AddHandler empty_cmbCategory.SelectedIndexChanged, AddressOf empty_cmbCategory_SelectedIndexChanged
End Sub

Protected Sub empty_cmbCategory_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs)
End Sub

"empty_cmbCategory"--- finds the control but selected event doesnt not fires.

Guide me to rectify it.


Author: Narayanan             
Posted Date: October 24, 2011     Points: 20   

Try this way
Please change your empty_cmbcategory_selectedindexchanger like this...

public void empty_cmbcategory_selectedindexchanger (object o, RadComboBoxSelectedIndexChangedEventArgs e)

Lakshmi Narayanan.S

Regards, Lakshmi Naraayanan.S

Post Reply

You must Sign In To post reply
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more Here
Quick Links For Forum Categories:
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  OOPs  SilverlightIISJQuery

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend