This is a migrated thread and some comments may be shown as answers.

Compiler Error Message: CS1061 for SelectedIndexChanged event

1 Answer 114 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Borislav
Top achievements
Rank 1
Borislav asked on 06 Jun 2012, 12:43 PM
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

1 Answer, 1 is accepted

Sort by
0
Ivana
Telerik team
answered on 11 Jun 2012, 10:24 AM
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.
Tags
ComboBox
Asked by
Borislav
Top achievements
Rank 1
Answers by
Ivana
Telerik team
Share this question
or