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

    Hi,
    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"
            onselectedindexchanged="ComboBox1_SelectedIndexChanged1">
            <HeaderTemplate>
                <table style="width: 400px" cellspacing="0" cellpadding="0">
                    <tr>
                        <td style="width: 300px;">
                            Name
                        </td>
                        <td style="width: 60px;">
                            Number
                        </td>
                    </tr>
                </table>
            </HeaderTemplate>
            <ItemTemplate>
                <table style="width: 400px" cellspacing="0" cellpadding="0">
                    <tr>
                        <td style="width: 300px;">
                            <%# Eval("Name")%>
                        </td>
                        <td style="width: 60px;">
                            <%# Eval("Id")%>
                        </td>
                    </tr>
                </table>
            </ItemTemplate>
        </telerik:RadComboBox>

    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"

    TIA
  2. Ivana
    Admin
    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?

    Greetings,
    Ivana
    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