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>
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>