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

Unwanted header wrap

3 Answers 75 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Dan
Top achievements
Rank 1
Dan asked on 31 Jan 2011, 11:09 PM
I installed the new radGrid a few days ago and suddenly find my horizontal scroll disappeared.  Instead, all the columns are the same width and the header wraps instead of taking full width. When I expand the columns at runtime, I can make them wider but then frozen columns is ignored.

What can cause the columns to restrict width instead of using the full width as necessary.  Am I going to need to specify column size for every visible column?

Thanks

3 Answers, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 03 Feb 2011, 01:22 PM
Hello Dan,

In order to display horizontal scroll for navigation, you need to make sure that the total width of the columns (either auto-generated or declaratively set) exceeds the width of the grid (as demonstrated in this online demo).

Keep in mind that when scrolling is enabled and UseStaticHeaders is True, the grid columns should declare HeaderStyle.Width.

All the best,
Pavlina
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
0
Dan
Top achievements
Rank 1
answered on 03 Feb 2011, 05:01 PM
In the end I declared the header style width for each column and in the framework we are building this will be provided for.  It is, however, extra work for no apparent gain.  Without this declaration, headers wrapped and data wrapped in an necessary and unwanted attempt to keep e;verything within the screen width.  Enabling scrolling should be an indicator that one is willing to live with wider columns that better display the data instead of artificial fixed width that forces that data into less readable formats.

Thanks for the answer.  I new how to get around it, I just didn't understand why the upgrade caused a change in behavior.

D
0
Pavlina
Telerik team
answered on 04 Feb 2011, 10:46 AM
Hi Dan,

The horizontal scrollbar will appear when the master table cannot accommodate the widths of the individual columns, and scrolling is enabled. Thus, to ensure that the horizontal scrollbar is present, you need to set the widths accordingly.

Additionally, will it be convenient for you to specify which is the previous version you are using and  send us the grid declaration. Thus we will be able to test the described behaviour locally with the two versions and advice you further.

Looking forward for your reply.

Greetings,
Pavlina
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
Tags
Grid
Asked by
Dan
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
Dan
Top achievements
Rank 1
Share this question
or