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

Grid with static headers, column resizing and scrolling

6 Answers 165 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Rashmi
Top achievements
Rank 1
Rashmi asked on 23 Jan 2012, 07:04 AM
Hi,
 I have a radgrid with static headers, column resizing enabled and scrolling enabled. Everything works fine until I resize any of column. When I resize any of columns, GridTableView get resized and a gap comes between scroll bar & gridtableview. I don't want gridtableview to get resized but others columns should be resized accordingly (which is behaviour with non-static headers).
Thanks,
Mahesh

6 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 23 Jan 2012, 07:37 AM
Hello Mahesh,

Try setting TableLayout as Fixed.
aspx:
<MasterTableView TableLayout="Fixed">

-Shinu.
0
Rashmi
Top achievements
Rank 1
answered on 23 Jan 2012, 07:43 AM
Hi Shinu,
I have already set it to Fixed. But problem is still there.
Regards,
Mahesh
0
Pavlina
Telerik team
answered on 23 Jan 2012, 01:20 PM
Hi,

When using resizing with scrolling and static headers only the GridTableView is resized - RadGrid's width remains fixed. Therefore the behavior you have observed (blank space after the last column) is expected. The grid does not support automatic column width recalculations when the sum of the widths of all its columns is less than the sum of the grid width. You can turn off static headers or leave the control as is, with the ability to add a horizontal scrollbar or empty space on the right.

Regards,
Pavlina
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
0
Robin
Top achievements
Rank 1
answered on 28 Jun 2012, 01:15 PM
Hi,

is there an update on this behavior? Has anything changed with the new Q2 release?
If not, is there a good work-around to achieve a Grid without the gap, but with StaticHeaders enabled?

Thanks in advance,
Robin
0
Rashmi
Top achievements
Rank 1
answered on 28 Jun 2012, 01:17 PM
Hi robin,
 What is that workaround?
0
Pavlina
Telerik team
answered on 28 Jun 2012, 04:18 PM
Hello,

Unfortunately there is no workaround for this problem. Please excuse us for the inconvenience caused.

All the best,
Pavlina
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
Rashmi
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Rashmi
Top achievements
Rank 1
Pavlina
Telerik team
Robin
Top achievements
Rank 1
Share this question
or