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

Behind code with RadcomboBox!?

1 Answer 58 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Guillaume
Top achievements
Rank 1
Guillaume asked on 22 Jun 2011, 04:49 PM
Hello!

Wanting to use the example described here:
Combox / Server-side events

So I adapted the code of my control by adding the directive: OnTextChanged = "Group_List_TextChanged" side aspx
<telerik:RadComboBox id="Group_List" runat="server" style="background-color:#fff;"  
    AutoPostBack="true"  
    OnTextChanged="Group_List_TextChanged"              
    AllowCustomText="false"       
    ExpandAnimation-Type="OutCubic"
    CollapseAnimation-Type="InOutQuart"       
    HighlightTemplatedItems="True"       
    Font-Italic="True"                               
    Width="270px">
<ItemTemplate>
    <div onclick="StopPropagation(event)">
        <telerik:RadTreeView ID="rtvInProdLineGroups" runat="server" DataFieldID="id_opc_item"
            OnClientNodeClicking="OnClientNodeClickedHandler"  AutoPostBack="True"
            DataFieldParentID="IdParent" DataTextField="Name" DataValueField="id_opc_item"                
            CheckBoxes="false" CheckChildNodes="false" MultipleSelect="false" style="background-color:#fff;"  >
        </telerik:RadTreeView>
    </div>
</ItemTemplate>
<Items>
    <telerik:RadComboBoxItem Text="Sélection ..." />
</Items>
</telerik:RadComboBox>
Then vb side. i added the event corresponding to it:

' Changement de signal
Private Sub Group_List_TextChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles Group_List.TextChanged
 
    ' Recuperer id Moyen
    Dim IdSignal As String = Group_List.SelectedValue
 
    ' Affecter les nouvelles valeurs
    hfSignal.Value = IdSignal
    RaiseEvent SelectedSignalChanged(New Guid(IdSignal))
End Sub

But
the example does not work for me!? I get this error:
Compiler Error Message: BC30456: 'Group_List_TextChanged' is not a member of 'ASP.oeecalcul_ctrl_tselect_signal_ascx'.

If one of you has an idea why. I'm interested
Thank you all
G

1 Answer, 1 is accepted

Sort by
0
Dimitar Terziev
Telerik team
answered on 25 Jun 2011, 05:31 PM
Hello Guillaume,

In order to deal with this problem you should change the access modifier of the event handler function.

Please set the modifier to be either public or protected.

Regards,
Dimitar Terziev
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Tags
ComboBox
Asked by
Guillaume
Top achievements
Rank 1
Answers by
Dimitar Terziev
Telerik team
Share this question
or