| <radspl:RadSplitter ID="spltSrchRes" runat="server" Skin="Outlook" Width="100%" |
| Visible="true" ResizeWithParentPane="true" ResizeWithBrowserWindow="true" ResizeMode="EndPane" Height="700"> |
| <radspl:RadPane ID="pnRefSrch" runat="server" Width="100%" Scrolling="None" > |
| <Telerik:RadGrid Width ="100%" ID="dgResults" EnableAJAX="True" HorizontalAlign="Center" runat="server" AllowPaging="True" AllowSorting="True" |
| Font-Names="Tahoma" OnItemCommand="dgResults_OnItemCommand" OnPageIndexChanged="dgResults_OnPageIndexChanged" Font-Size="X-Small" GridLines="None" Skin="Office2007" |
| OnSortCommand="dgResults_SortCommand" OnPreRender="dgResults_PreRender" OnExcelExportCellFormatting="dgResults_ExcelExportCellFormatting"> |
| <AlternatingItemStyle Font-Size="8pt" CssClass="MyAlternatingClass" /> |
| <ItemStyle Font-Names="Tahoma" Font-Size="8pt" CssClass="MyClass" wrap="False" /> |
| <HeaderStyle Font-Bold="True" Font-Size="9pt" ForeColor="Black" Wrap="False" HorizontalAlign="Center"/> |
| <ClientSettings AllowColumnsReorder="false" ReorderColumnsOnClient="false" AllowAutoScrollOnDragDrop="false" > |
| <Resizing AllowColumnResize="True" ClipCellContentOnResize="False" ></Resizing> |
| <Scrolling AllowScroll="True" UseStaticHeaders ="true" ScrollHeight="550px" /> |
| <Selecting AllowRowSelect="True" /> |
| <ClientEvents OnGridCreated="GridCreated" /> |
| </ClientSettings> |
| <MasterTableView Width ="99%" > |
| <Columns> |
| ...... |
I use static headers in my grid. As I need to show many columns, I expect there is a horizontal scroll bar to scroll the grid when the number of columns increases.
1) However, with static headers=true, there is no horizontal scroll bar. I had the scroll bar when I didn't use static hearders (which default is false.)
2) Also, another problem is: with static headers, the column shows with equal width. But I need it to be shown with content width (auto instead of fixed.)
For your reference, I put some part of my code above.
Thanks.
