Hello,
I have a scrolling grid using static headers and no paging. I need to have the grid expand inside it's container but I've gone through the forums for the splitter and grid as well as the code library and I can't seem to get it to work correctly.
I want the grid to scroll, not the splitter pane so that the column headers stay on the screen. Also, if it's not too much to ask I'd like to be able to have the grid resize when the screen resizes and causes the splitter to resize.
The page is set up with a splitter as the main control set for a horizontal orientation. In the splitter there are 2 RadPanes. The top one contains header text and a toolbar. The bottom one contains the grid. Around the grid I added a div just for padding.
What is happening with this setup is the splitter occupies 100% of the page correctly. The bottom pane expands to fill the rest of the page under the header, which is correct. But the grid opens to around 200px high and 40px wide and then immediatly snaps to full width (which is correct) but only shows the column headers and another 10px (around 30px total height).
Attached is a screen shot of the grid after it expands.
<style type="text/css"> |
html, body, form |
{ |
height: 100%; |
margin:0; |
padding:0; |
overflow: hidden; |
} |
</style> |
<telerik:RadSplitter ID="rsMain" runat="server" Height="100%" Width="100%" Orientation="Horizontal"> |
<telerik:RadPane ID="rpTop" runat="server" Height="110px" Locked="true"> |
<div style="padding: 10px; padding-bottom:0;"> |
This is my page header |
<div style="padding-bottom: 20px"> |
<telerik:RadToolBar ID="rtbToolbar" runat="server"> |
<Items> |
<telerik:RadToolBarButton runat="server" SkinID="FolderUp" id="rtbbBack" PostBack="false"></telerik:RadToolBarButton> |
<telerik:RadToolBarButton runat="server" SkinID="Refresh" id="rtbbRefresh" PostBack="false"></telerik:RadToolBarButton> |
</Items> |
</telerik:RadToolBar> |
</div> |
</div> |
</telerik:RadPane> |
<telerik:RadPane ID="rpBottom" runat="server" Height="100%"> |
<div style="padding: 10px; padding-top: 0;"> |
<telerik:RadGrid ID="rgMyGrid" runat="server" OnNeedDataSource="rgMyGrid_NeedDataSource" Height="100%" Width="100%"> |
<ClientSettings> |
<Scrolling AllowScroll="true" UseStaticHeaders="true" /> |
</ClientSettings> |
<MasterTableView AutoGenerateColumns="false" TableLayout="Auto"> |
<Columns> |
<telerik:GridHyperLinkColumn UniqueName="Name" DataTextField="Name" DataNavigateUrlFields="DetailsUrl" HeaderText="Name"> |
</telerik:GridHyperLinkColumn> |
<telerik:GridImageColumn UniqueName="IsCustom" HeaderStyle-Width="60px" HeaderText="Custom" DataImageUrlFields="IsCustomImageUrl" |
ItemStyle-HorizontalAlign="Center" /> |
</Columns> |
</MasterTableView> |
</telerik:RadGrid> |
</div> |
</telerik:RadPane> |
</telerik:RadSplitter> |
Anyone have any ideas?