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

[Solved] RadCombobox inside radgrid multicolumn SIZE

1 Answer 193 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Sean
Top achievements
Rank 1
Sean asked on 27 Oct 2009, 07:10 PM
Hello,

I try to implement a Combobox inside a radgrid.
I have a problem to display fully the radcombo multicolumns table width which seems to be the same as the column size instead of a bigger width.

here is my code for my column template. any idea? Thanks

  <telerik:GridTemplateColumn DataField="LongAccount"  HeaderStyle-HorizontalAlign="Center"
                                UniqueName="LongAccount" HeaderText="Account" ReadOnly="true" ShowSortIcon="false"
                                FooterText="Sub Total">
                                <ItemTemplate>
                                    <asp:Label ID="lblAccount" runat="server" Text='<%#Bind("LongAccount") %>'></asp:Label>
                                </ItemTemplate>
                                <EditItemTemplate>
                                    <asp:Label ID="lblAccntPrefix" runat="server"></asp:Label>
                                    <telerik:RadComboBox ID="ddlAccount" HighlightTemplatedItems ="true" MarkFirstMatch="true" Width="50px" DataTextField="Desc" DataValueField="Account" runat="server">
                                        <HeaderTemplate>
                                            <table style="width: 275px" cellspacing="0" cellpadding="0">
                                                <tr>
                                                    <td style="width: 50px;">
                                                        Account
                                                    </td>
                                                    <td style="width: 220px;">
                                                        Description
                                                    </td>
                                                </tr>
                                            </table>
                                        </HeaderTemplate>
                                        <ItemTemplate>
                                            <table style="width: 275px" cellspacing="0" cellpadding="0">
                                                <tr>
                                                    <td style="width: 50px;">
                                                        <%# DataBinder.Eval(Container, "Text")%>
                                                    </td>
                                                    <td style="width: 220px;">
                                                        <%#DataBinder.Eval(Container, "Value")%>
                                                    </td>
                                                </tr>
                                            </table>
                                        </ItemTemplate>
                                        
                                    </telerik:RadComboBox>
                                    <asp:Label ID="lblAccntSuffix" runat="server"></asp:Label>
                                </EditItemTemplate>
                                <HeaderStyle HorizontalAlign="Center"></HeaderStyle>
                                <ItemStyle HorizontalAlign="Left" Width="100px" CssClass="BorderRight BorderBottom" />
                                <FooterStyle CssClass="BorderRight BorderBottom" />
                            </telerik:GridTemplateColumn>

1 Answer, 1 is accepted

Sort by
0
Veselin Vasilev
Telerik team
answered on 30 Oct 2009, 02:13 PM
Hi Sean,

Try setting the DropDownWidth property of the combobox.
Please check this online demo: Combo in Grid

Regards,
Veselin Vasilev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
ComboBox
Asked by
Sean
Top achievements
Rank 1
Answers by
Veselin Vasilev
Telerik team
Share this question
or