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

Setting allow scroll equal to false removes specific column width

1 Answer 57 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Bill
Top achievements
Rank 1
Bill asked on 19 Oct 2011, 12:21 AM
In my code behind I'm specifying the width of certain columns (not all), for example:

ColumnName.HeaderStyle.Width = Unit.Pixel(40);

This works fine when you set AllowScroll equal to true (see attached image - allowscroll-true.jpg):

<Scrolling AllowScroll="True" UseStaticHeaders="True"  />

The problem is when you set AllowScroll equal to false it removes the width of the column (see attached image - allowscroll-false.jpg)

Is there any way to define the column width while still having allowscroll equal to false?

1 Answer, 1 is accepted

Sort by
0
Mira
Telerik team
answered on 21 Oct 2011, 04:27 PM
Hello Bill,

In order to implement the desired functionality,  you need to set TableLayout="Fixed" in the MasterTableView and calculate the widths of the columns correct - the sum should not exceed the width of the grid.
I have prepared a sample project for you implementing these requirements. You can find it attached to this post.

I hope it helps.
 
Best wishes,
Mira
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
Tags
Grid
Asked by
Bill
Top achievements
Rank 1
Answers by
Mira
Telerik team
Share this question
or