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

[Solved] AllowScrolling and UseStaticHeaders

3 Answers 132 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Michael Arocho
Top achievements
Rank 2
Michael Arocho asked on 09 Sep 2009, 02:09 PM
Hi,

When I enable the combination of AllowScrolling and UseStaticHeaders with a set ScrollHeight, if there are enough items to cause the vertical scrolling to occur, it also causes the horizontal scrolling.  My best guess is that it trys to use part of the grid for the scroll bar and doesnt re-size the columns to fit inside of it.  Instead its funny looking in that the headers stay static even when horizontally scrolling.  Is there a way to fix this so that if a vertical scroll bar is needed, the columns will resize to not think they need that extra 20 pixels or so?

3 Answers, 1 is accepted

Sort by
0
Martin
Telerik team
answered on 09 Sep 2009, 05:27 PM
Hello Michael,

Please try setting TableLayout="fixed" of the MasterTableView. I would also suggest you to review the following help topics:

Height vs. ScrollHeight
Scroll with static headers

I hope this helps

Regards,
Martin
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Michael Arocho
Top achievements
Rank 2
answered on 09 Sep 2009, 05:45 PM
I have tried the fixed table layout and am following all of the guidelines in the other 2 help resources.  It still creates the horizontal scroll bar.  If i add up all of the header widths for my visible columns, it is about 50px less that the width set on the grid itself.  All of the visible columns have a specified width, and i am using ScrollHeight, not Height.
0
Michael Arocho
Top achievements
Rank 2
answered on 09 Sep 2009, 05:54 PM
I figured it out.  I have to set the Width of the RadGrid to specifically be larger than a specific width set on the MasterTableView.
Tags
Grid
Asked by
Michael Arocho
Top achievements
Rank 2
Answers by
Martin
Telerik team
Michael Arocho
Top achievements
Rank 2
Share this question
or