This is a migrated thread and some comments may be shown as answers.

[Solved] Scrolling and Grouping and Sizing... Oh My!

2 Answers 95 Views
Grid
This is a migrated thread and some comments may be shown as answers.
George
Top achievements
Rank 1
George asked on 20 Jul 2009, 06:21 PM
Ok, I need help understanding why this would be the case.  I'm assuming, of course, there is a reason for it.

I have a grid...
The Grid column widths are NOT set...
The Grid Header/Item/Footers are all set to wrap=false.
Scrolling is enabled.
Static Headers are enabled.

EDIT:  I should have stated this also.  The grid width is set to 100% so it will shrink/expand with the page.

Without a group active and without resizing active, the grid looks fine.  The headers and/or columns do wrap, and the grid srolls properly (horizontally) within its deisplayed area.

Now...  If I enable a Group...

The Grid seems to ignore the wrap setting, and reduces all the columns to fit in the visible area.  I'm not sure why, not to mention, I'm not sure why the wrap setting is ignored.

Also, seperately, if I enable resizing...  It appears to have a similar affect.

Am I asking too much of the grid to adhere to the wrap=false setting when grouping AND/OR activating resizing?

Also, as a side note, when resizing, on an ajax request, it doesn't remember the resize, and "re-squishes" :).  Now, I do create my columns programmatically on Page_Init, however, as I said, I don't set width, and wrapping is set to false.

Thanks!!!
Kuba

2 Answers, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 21 Jul 2009, 11:11 AM
Hello Kuba Cole,

Grouping and row rezising require Fixed TableLayout for the MasterTableView, which causes the columns to shrink and fit in the RadGrid width.

You can set a pixel width to the MasterTableView, which is larger than the RadGrid width, in order to maintain the horizontal scrolling. Alternatively, set column widths.

All the best,
Dimo
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
George
Top achievements
Rank 1
answered on 21 Jul 2009, 03:00 PM
Hi Dimo,

   I knew you were going to say that!  Actually I was pretty sure, but needed clarification.  Thanks, my collegue will be buying me lunch today!!! :)

Thanks again!

Kuba
Tags
Grid
Asked by
George
Top achievements
Rank 1
Answers by
Dimo
Telerik team
George
Top achievements
Rank 1
Share this question
or