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

User control with radcombobox inside RadGrid

1 Answer 24 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Edgar
Top achievements
Rank 1
Edgar asked on 11 Aug 2016, 05:00 PM

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?

1 Answer, 1 is accepted

Sort by
0
Veselin Tsvetanov
Telerik team
answered on 16 Aug 2016, 10:10 AM
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.
Tags
ComboBox
Asked by
Edgar
Top achievements
Rank 1
Answers by
Veselin Tsvetanov
Telerik team
Share this question
or