User control with radcombobox inside RadGrid

2 posts, 0 answers
  1. Edgar
    Edgar avatar
    1 posts
    Member since:
    Oct 2013

    Posted 11 Aug 2016 Link to this post

    Hi telerik team.


    I have some questions, i´m working with a user control like this:

    <telerik:RadAjaxManagerProxy runat="server">
             <telerik:AjaxSetting AjaxControlID="cbTaxesGroup">
                    <telerik:AjaxUpdatedControl ControlID="cbTaxes" />

        <div class="col-md-10">
            <telerik:RadComboBox runat="server" ID="cbTaxesGroup" AllowCustomText="false" EmptyMessage="Selecciona" AutoPostBack="true"               OnSelectedIndexChanged="cbTaxesGroup_SelectedIndexChanged"></telerik:RadComboBox><br />
            <telerik:RadComboBox runat="server" ID="cbTaxes" AllowCustomText="true" MarkFirstMatch="true" AutoPostBack="true" OnSelectedIndexChanged="cbTaxes_SelectedIndexChanged"></telerik:RadComboBox><br />        


    Each cbTaxes depends of cbTaxesGroup selection...

    And i´m using this control inside a RadGrid like:

    <telerik:GridTemplateColumn UniqueName="templateTaxesColumn" HeaderText="Impuesto">
                                    <%# Eval("TaxDescription") %>
                                    <ucCustom:ucTaxesCtrl runat="server" ID="cmbTaxes" />
                                    <asp:RequiredFieldValidator runat="server" ControlToValidate="cmbTaxes:cbTaxesGroup" CssClass="validate-control" ErrorMessage=" *" ForeColor="Red"></asp:RequiredFieldValidator>
                                    <asp:RequiredFieldValidator runat="server" ControlToValidate="cmbTaxes:cbTaxes" CssClass="validate-control" ErrorMessage=" *" ForeColor="Red"></asp:RequiredFieldValidator>

    But the problem is that the second radcombobox neves is populate...

    Someone can help me please?

  2. Veselin Tsvetanov
    Veselin Tsvetanov avatar
    590 posts

    Posted 16 Aug 2016 Link to this post

    Hi Edgar,

    Attached you will find a simple implementation of the RadGrid and the User control, based on the described scenario. On our side, the User control works as expected and the second combo box gets populated appropriately.

    May I ask you to tell us how to modify the sample so it reproduces the problem? This way will will be able to troubleshoot the issue locally.

    Veselin Tsvetanov
    Telerik by Progress
    Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
Back to Top