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

UseStaticHeaders and autosize

1 Answer 44 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Dennis
Top achievements
Rank 1
Dennis asked on 21 Jun 2013, 02:53 PM
When you have a radgrid using UseStaticHeaders=True, the radgrid's width fills the browser.  If you resize the columns using best fit, sometimes, depending on how many columns you have, an empty column shows up filling the space between your last column and the radgrids right boundary.  How is this done?  I am trying to achieve the same effect using columns with HeaderWidths specified.  Do I just add an empty GridTemplateColumn?

1 Answer, 1 is accepted

Sort by
0
Angel Petrov
Telerik team
answered on 26 Jun 2013, 08:25 AM
Hi Dennis,

When using resizing with scrolling and static headers only the GridTableView is resized - RadGrid's width remains fixed. The white space which you see is actually the difference between the width of the GridTableView and the grid. That said in order to achieve the same result you will have to enable the static headers and resizing functionality and set a width for the GridTableView smaller than the one of the grid.

Regards,
Angel Petrov
Telerik
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 the blog feed now.
Tags
GridView
Asked by
Dennis
Top achievements
Rank 1
Answers by
Angel Petrov
Telerik team
Share this question
or