Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
360
column resizing question
posted

Hello, in my 20 row by 5 column grid I would like the last column to take up all remaining space in the grid, but when I specify width=100% in the column, I get a horizontal scrollbar and a vertical scrollbar that overlaps the last column.  It also will not let me increase the size of the last column.  I can decrease, but not increase.  the grid width is not set, the framestyle is 100%.  Also my grid is in a td tag.  I suspect either I've got something messed up with grid and displaylayout, or something in the table that the grid is in is overriding it.  The behavior is the same in ie6 & ie7

 I tried resizing manually in my ResizePage javascript event and after I size the grid to its container I call this:

(stupid question - how do you paste w/o all the line breaks?)

(Is there a better way to get the id of a column rather than hardcoding it like this?) 

var abstractColId = grid.Id + "_c_0_4";var abstractCol = igtbl_getColumnById(abstractColId);

igtbl_resizeColumn(grid.Id, abstractColId, currentSize[0]-200 - 450); // just playing around with the size here

 for reference, here is what my displaylayout and framestyle look like

<DisplayLayout AutoGenerateColumns="false" AllowColSizingDefault="Free" AllowColumnMovingDefault="OnServer"

AllowSortingDefault="No" BorderCollapseDefault="Separate" ColWidthDefault="100"

HeaderClickActionDefault="SortSingle" LoadOnDemand="Xml" Name="SearchResultsGrid"

NoDataMessage="" RowHeightDefault="20px" RowSelectorsDefault="Yes" ScrollBar="Auto"

RowsRange="20" SelectTypeRowDefault="Single" StationaryMargins="Header" StationaryMarginsOutlookGroupBy="True" TableLayout="Fixed" Version="4.00"

ViewType="Hierarchical" XmlLoadOnDemandType="Synchronous">

<FrameStyle BackColor="#dfdfc0" BorderColor="InactiveCaption" BorderStyle="None" BorderWidth="1px" Font-Names="Microsoft Sans Serif"

Font-Size="8.25pt" Height="100%" Width="100%" >

</FrameStyle>