Hi All
I have a grid that is using static headers with columns declaring widths using the header.width property. However I have no control over the grid size by resizing my columns, as resizing one column stretches out the other so the grid fits the whole page, like it is auto resizing to fit the page. Any Ideas on how to have control of grid widths greatly appreciated.
I have a grid that is using static headers with columns declaring widths using the header.width property. However I have no control over the grid size by resizing my columns, as resizing one column stretches out the other so the grid fits the whole page, like it is auto resizing to fit the page. Any Ideas on how to have control of grid widths greatly appreciated.
<telerik:RadGrid ID="gvDefleetCapIds" runat="server" AllowSorting="True" AutoGenerateColumns="False" CellSpacing="0" Font-Names="Verdana" Font-Size="X-Small" GridLines="None" ondetailtabledatabind="gvDefleetCapIds_DetailTableDataBind" oneditcommand="gvDefleetCapIds_EditCommand" onitemcommand="gvDefleetCapIds_ItemCommand" onupdatecommand="gvDefleetCapIds_UpdateCommand" Width="1246px" AllowPaging="True" PageSize="30" AllowCustomPaging="True" Skin="WebBlue" onneeddatasource="gvDefleetCapIds_NeedDataSource" onitemdatabound="gvDefleetCapIds_ItemDataBound"> <headercontextmenu cssclass="GridContextMenu GridContextMenu_Default" > </headercontextmenu> <mastertableview autogeneratecolumns="False" cellspacing="0" datakeynames="CapID,Year,Plate" font-names="Verdana" font-size="X-Small"> <CommandItemSettings ExportToPdfText="Export to PDF" /> <RowIndicatorColumn FilterControlAltText="Filter RowIndicator column"> </RowIndicatorColumn> <ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn column" Visible="True"> </ExpandCollapseColumn> <Columns> <telerik:GridBoundColumn DataField="CapID" HeaderStyle-Width="25px" FilterControlAltText="Filter column2 column" HeaderText="CapID" UniqueName="column2"> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="V_Description" FilterControlAltText="Filter column1 column" HeaderText="V_Description" UniqueName="column1"> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="Plate" HeaderStyle-Width="10px" FilterControlAltText="Filter column column" HeaderText="Plate" UniqueName="column"> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="Year" FilterControlAltText="Filter column4 column" HeaderText="Year" HeaderStyle-Width="20px" UniqueName="column4"> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="Units" HeaderStyle-Width="10px" FilterControlAltText="Filter column6 column" HeaderText="Units" UniqueName="column6"> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="Price" HeaderStyle-Width="25px" FilterControlAltText="Filter column3 column" HeaderText="CAP_Price" UniqueName="column3"> </telerik:GridBoundColumn> <telerik:GridBoundColumn Aggregate="Sum" DataField="AvgMiles" FilterControlAltText="Filter column5 column" HeaderText="AvgMiles" HeaderStyle-Width="25px" UniqueName="column5"> </telerik:GridBoundColumn> <telerik:GridButtonColumn ButtonType="ImageButton" CommandName="Delete" ConfirmDialogType="RadWindow" ConfirmText="Delete this CAPID ?" ConfirmTitle="Confirm Delete" Text="Delete" UniqueName="DeleteColumn"> <ItemStyle CssClass="DeleteButton" HorizontalAlign="Center" /> </telerik:GridButtonColumn> </Columns> <EditFormSettings> <EditColumn FilterControlAltText="Filter EditCommandColumn column"> </EditColumn> </EditFormSettings> </mastertableview> <clientsettings> <Scrolling AllowScroll="True" SaveScrollPosition="true" ScrollHeight="625px" /> </clientsettings> <filtermenu enableimagesprites="False"> </filtermenu> </telerik:RadGrid>