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?)
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
AllowSortingDefault="No" BorderCollapseDefault="Separate" ColWidthDefault="100"
NoDataMessage="" RowHeightDefault="20px" RowSelectorsDefault="Yes" ScrollBar="Auto"
ViewType="Hierarchical" XmlLoadOnDemandType="Synchronous">
Font-Size="8.25pt" Height="100%" Width="100%" >
</FrameStyle>
Unfortunately, no. And I didn't contact supoort like I said I would.
tom4336 said:I'll ping support tomorrow if no one here knows what's going on.
I'm still trying to solve my original problem - I can resize all the columns except for the last one. I can make the last column smaller, but not bigger (even after making it smaller). I thought I could sneak it by QA, but they were sneakier ("how come you can resize all the columns except the last one?)
I've at least discovered that the problem goes away when StationaryMargins is set to "no" rather than "header", however this is not a good solution as I actually want the header fixed. I'll ping support tomorrow if no one here knows what's going on.
I'm sorry I don't know how to solve your basic question, but:
tom4336 said: (stupid question - how do you paste w/o all the line breaks?)
That's not a stupid question; it's an annoying shortcoming of these forums. When I paste code, I go through it manually, replacing CrLf's with Lf's, and entering the spaces required to restore indentation.
Please feel free to post a gripe over in the WebSites forum: http://forums.infragistics.com/forums/67.aspx. (You won't be the first.)
I figured out one part of my question: If you want to get a specific column in javascript you can do something like this:
grid.Bands[0].getColumnFromKey("column1Key");
I still have the problem where I can't resize the last column, but the best I could come up with is modify the size of the column in my ResizePage event like so:
igtbl_resizeColumn(grid.Id, abstractCol.Id, parseInt(grid.MainGrid.style.width) - colWidths - 60); //the 60 is there because the width seems to be off by this much for some unknown reason
colWidths contains the size of all the columns added together
So this is great for page resizing (as long as I disable column moving), but if anyone has any ideas why I cant increase the size of the last column (I can decrease), I'm all ears. Maybe there is a column resize event I haven't discovered that could trap and see what's going on?
Tom