User control with radcombobox inside RadGrid

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

    Posted 11 Aug Link to this post

    Hi telerik team.

     

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

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

    <section>
        <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 />        
        </div>    
    </section>

     

    Each cbTaxes depends of cbTaxesGroup selection...

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

    <telerik:GridTemplateColumn UniqueName="templateTaxesColumn" HeaderText="Impuesto">
                                <ItemTemplate>
                                    <%# Eval("TaxDescription") %>
                                </ItemTemplate>
                                <EditItemTemplate>
                                    <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>
                                </EditItemTemplate>
                            </telerik:GridTemplateColumn>

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

    Someone can help me please?

  2. Veselin Tsvetanov
    Admin
    Veselin Tsvetanov avatar
    278 posts

    Posted 16 Aug 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.

    Regards,
    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top