Behind code with RadcomboBox!?

2 posts, 0 answers
  1. Guillaume
    Guillaume avatar
    3 posts
    Member since:
    Jun 2011

    Posted 22 Jun 2011 Link to this post

    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
  2. Dimitar Terziev
    Admin
    Dimitar Terziev avatar
    1268 posts

    Posted 25 Jun 2011 Link to this post

    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.

Back to Top