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

[Solved] RadComboBox in RadGrid

1 Answer 157 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Quin
Top achievements
Rank 1
Quin asked on 11 Apr 2008, 03:55 PM
I'm sure there is a simple solution to this one, but when i use a RadComboBox in an ASP.NET GridView the RadComboBox becomes disabled.  This RadComboBox is used as a TemplateField.  The dropdowns work fine in the GridView, but not the RadComboBox.

<asp:GridView ID="gvCPT" runat="server" CellPadding="2" OnRowCommand="gvCPT_RowCommand" OnRowDataBound="gvCPT_RowDataBound" ForeColor="#333333" DataKeyNames="Value" AutoGenerateColumns="false" GridLines="None"
    <Columns>        
 
    <asp:TemplateField HeaderText="Qty"
                                        <ItemTemplate> 
                                          <telerik:RadComboBox ID="ddlQty" Width="40px" runat="server" Skin="Outlook" style="text-align: right" AllowCustomText="True"
                                                <CollapseAnimation Duration="200" Type="OutQuint" /> 
                                                <Items> 
                                                    <telerik:RadComboBoxItem runat="server" Text="1" /> 
                                                    <telerik:RadComboBoxItem runat="server" Text="2" /> 
                                                    <telerik:RadComboBoxItem runat="server" Text="3" /> 
                                                    <telerik:RadComboBoxItem runat="server" Text="4" /> 
                                                    <telerik:RadComboBoxItem runat="server" Text="5" /> 
 
</Items> 
                                            </telerik:RadComboBox> 
</ItemTemplate> 
                                        <HeaderStyle HorizontalAlign="Center" /> 
                                    </asp:TemplateField> 
    </Columns> 
</Columns>                                 
                            </asp:GridView> 

1 Answer, 1 is accepted

Sort by
0
Rosi
Telerik team
answered on 14 Apr 2008, 02:45 PM
Hi Quin,

Please find attached sample project based on your code. It works as expected.

I suggest you download it and find the differences on your side.

If this does not help you, please open a support ticket and send us a running project illustrating the problem to test it locally.

Regards,
Rosi
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
ComboBox
Asked by
Quin
Top achievements
Rank 1
Answers by
Rosi
Telerik team
Share this question
or