Compiler Error Message: CS1061 for SelectedIndexChanged event

2 posts, 0 answers
  1. Borislav
    Borislav avatar
    1 posts
    Member since:
    Oct 2012

    Posted 06 Jun 2012 Link to this post

    I have a page where I use RadComboBox.
    I tried to set an event for SelectedIndexChanged, but ASP show me that error message.
    Here my ASPX part:
    <telerik:RadComboBox ID="ComboBox1" runat="server" Filter="StartsWith" Width="500"
            HighlightTemplatedItems="true" Height="300" ShowMoreResultsBox="True" SortCaseSensitive="False"
            ExpandAnimation-Type="OutQuart" AutoPostBack="true"
                <table style="width: 400px" cellspacing="0" cellpadding="0">
                        <td style="width: 300px;">
                        <td style="width: 60px;">
                <table style="width: 400px" cellspacing="0" cellpadding="0">
                        <td style="width: 300px;">
                            <%# Eval("Name")%>
                        <td style="width: 60px;">
                            <%# Eval("Id")%>

    Here my C# code:
    protected void ComboBox1_SelectedIndexChanged1(object sender, RadComboBoxSelectedIndexChangedEventArgs e)

    And the error message is:
    Compiler Error Message: CS1061: 'ASP.builderform_aspx' does not contain a definition for
    'ComboBox1_SelectedIndexChanged1' and no extension method 'ComboBox1_SelectedIndexChanged1'
    accepting a first argument of type
     'ASP.builderform_aspx' could be found (are you missing a using directive or an assembly reference?)
    Source Error:
    Line 26:             VerticalPadding="0px" />
    Line 27:     </asp:TreeView>
    Line 28:     <telerik:RadComboBox ID="ComboBox1" runat="server" Filter="StartsWith" Width="500"
    Line 29:         HighlightTemplatedItems="true" Height="300" ShowMoreResultsBox="True" SortCaseSensitive="False"
    Line 30:         ExpandAnimation-Type="OutQuart" AutoPostBack="true"

  2. Ivana
    Ivana avatar
    657 posts

    Posted 11 Jun 2012 Link to this post

    Hi Borislav,

    I can not replicate such an issue at my end. Could you make sure that you have the Telerik DLLs referenced properly? Also, what is the version of RadControls for ASP.NET AJAX that you use in your application?
    Have you tried to isolate the problem?

    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Back to Top