Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET > Combobox > Telerik RadComboBox not building
RadControls for ASP.NET are no longer supported (see this page for reference). In case you have inquiries about the Telerik ASP.NET AJAX controls, post them in the pertinent ASP.NET AJAX forums.

Not answered Telerik RadComboBox not building

Feed from this thread
  • Lloyd avatar

    Posted on May 23, 2011 (permalink)

    Good morning all.

    I'm receiving a very peculiar Telerik error.

    I'm using a RadComboBox, when trying to build I get this error :

    Method 'Protected Sub ddlMyDropDown_SelectedIndexChanged(sender As Object, e As Telerik.Web.UI.RadComboBoxSelectedIndexChangedEventArgs)' cannot handle Event 'Public Event SelectedIndexChanged(sender As Object, e As System.EventArgs)' because they do not have the same signature.

    So you all can get a full understanding of the situation I find myself in, I'll show you my declaration and event instance:

    <telerik:RadComboBox Skin="Telerik" runat="server" AutoPostBack="true" ID="ddlMyDropDown" DataTextField="uname" DataValueField="Id" EnableEmbeddedSkins="true"></telerik:RadComboBox>

    and the event code :

    Protected Sub ddlMyDropDown_SelectedIndexChanged(ByVal sender As Object, ByVal e As Telerik.Web.UI.RadComboBoxSelectedIndexChangedEventArgs) Handles ddlMyDropDown.SelectedIndexChanged
       
    UserId = ddlMyDropDown.SelectedValue
    End Sub

    It all runs as expected when I force run the project, but it won't build successfully or allow me to publish. The error message just doesn't make any logical sense.

    I've tried using System.EventArgs assuming that the Telerik event args derive from it. But still no success.

    Any help would be highly appreciated.

  • Kalina Kalina admin's avatar

    Posted on May 25, 2011 (permalink)

    Hi Lloyd,

    As I understand - you use RadComboBox for ASP.NET and you want to handle the SelectedIndexChanged event.
    The event handler signature that you use is related to RadComboBox for ASP.NET AJAX.
    In order to handle SelectedIndexChanged of RadComboBox for ASP.NET please use this signature:
    Private Sub ddlMyDropDown_SelectedIndexChanged(ByVal o As Object, ByVal e As Telerik.WebControls.RadComboBoxSelectedIndexChangedEventArgs)
       ...
    End Sub

    More details about this topic you can find here.

    All the best,
    Kalina
    the Telerik team

    Consider using RadControls for ASP.NET AJAX (built on top of the ASP.NET AJAX framework) as a replacement for the Telerik ASP.NET Classic controls, See the product support lifecycle here.

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET > Combobox > Telerik RadComboBox not building