I have created a RadGrid with 4 columns and grouping enabled. The last two columns have a width specified using the ItemStyle-Width property. When the grid renders the width's are not honored and end up drawing wider than the specified width. Using the IE development toolbar I found the <p> tag that renders in the GridGroupHeaderItem and set the css attribute display:none. As soon as I do that the widths are rendered correctly.
There appears to be an issue with having a <p> tag inside of the <td> tag of the group header row. However, I do not know how to prevent this <p> tag from rendering.
I am using the default skin and 2009.1.402.35 version of the controls.
There appears to be an issue with having a <p> tag inside of the <td> tag of the group header row. However, I do not know how to prevent this <p> tag from rendering.
I am using the default skin and 2009.1.402.35 version of the controls.
<rad:RadGrid ID="rgBuySell" runat="server" Width="100%" AutoGenerateColumns="false" onitemdatabound="rgBuySell_ItemDataBound" onneeddatasource="rgBuySell_NeedDataSource" onitemcommand="rgBuySell_ItemCommand" onprerender="rgBuySell_PreRender"> |
<MasterTableView ShowGroupFooter="true" DataKeyNames="fkAssetFrom"> |
<Columns> |
<rad:GridBoundColumn DataField="ProductToName" HeaderText="Product" UniqueName="Product" /> |
<rad:GridBoundColumn DataField="ProductToTicker" HeaderText="Ticker" /> |
<rad:GridBoundColumn DataField="Percent" HeaderText="Percent" ItemStyle-Width="55px" HeaderStyle-Width="55px" /> |
<rad:GridBoundColumn DataField="Amount" HeaderText="Amount" ItemStyle-Width="55px" HeaderStyle-Width="55px" /> |
</Columns> |
</MasterTableView> |
</rad:RadGrid> |