Hello,
I have 2 forms with a RadGrid within RadDock.
Issue is, Height of the RadGrid is not coming proper.
I tried setting Height of RadGrid to 100%.
I tried setting the table's property : style="table-layout:fixed"
Either height is too less to see even headers. Or of rows is too big.
I want height of the grid to be adjusted automatically based on number of records.
Please help me on this.
Thanks.
Jimmy.
Here is my code for dock and grid:
<div><telerik:RadDockLayout ID="dockLayoutContainerEntityType" runat="server"></div><div> <telerik:RadDockZone ID="dockZoneActionZone" runat="server" Orientation="Vertical" BorderStyle="None"></div><div> <telerik:RadDock ID="dockActions" Skin="Office2007" runat="server" Title="Container-EntityType Mapping" Width="100%" style="margin-bottom:7px"</div><div> EnableAnimation="false" EnableRoundedCorners="true" Resizable="false" EnableDrag="false" DockMode="Docked" </div><div> DefaultCommands="None" ></div><div> <ContentTemplate></div><div> <table cellspacing="0" cellpadding="0" border="0" width="100%" height="100%" style="table-layout:fixed"></div><div> <tr valign="top" align="center" style="height:100%"></div><div> <td valign="top" align="center" style="height:100%"></div><div> <telerik:RadGrid ID="gridTest" runat="server" Skin="Office2007" Width="60%" </div><div> IsConfigDrivenGrid="false" AutoGenerateColumns="false" AllowPaging="true" PagerStyle-AlwaysVisible="true" </div><div> AllowMultiRowSelection="true" AllowFilteringByColumn="false" ShowGroupPanel="false" ></div><div> <Selecting AllowRowSelect="true" /></div><div> <Scrolling AllowScroll="true" /></div><div> </ClientSettings></div><div> <MasterTableView Height="90%"></div><div> <Columns></div><div> <telerik:GridTemplateColumn Visible="false"></div><div> <ItemTemplate></div><div> <asp:HiddenField ID="hdnMappingId" runat="server" Value='<%#DataBinder.Eval(Container.DataItem, "Id")%>' /></div><div> <asp:HiddenField ID="hdnEntityTypeId" runat="server" Value='<%#DataBinder.Eval(Container.DataItem, "EntityTypeId")%>' /></div><div> </ItemTemplate></div><div> </telerik:GridTemplateColumn></div><div> <telerik:GridClientSelectColumn HeaderStyle-HorizontalAlign="Center" HeaderStyle-Width="10%" /></div><div> <telerik:GridBoundColumn HeaderText="Entity Type" DataField="Name" UniqueName="Name"></div><div> <HeaderStyle Width="90%" HorizontalAlign="Left" /></div><div> <ItemStyle Width="90%" HorizontalAlign="Left" /></div><div> </telerik:GridBoundColumn></div><div> </Columns></div><div> </MasterTableView></div><div> </telerik:RadGrid></div><div> </td></div><div> </tr></div><div> <tr></div><div> <td height="10px"></td></div><div> </tr></div><div> </table></div><div> </ContentTemplate></div><div> </telerik:RadDock></div><div> </telerik:RadDockZone></div><div> </telerik:RadDockLayout></div> |