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

Grid 100% width colums width problem

1 Answer 39 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Tamas
Top achievements
Rank 1
Tamas asked on 16 Jul 2012, 06:41 AM
Hi!

I have a RadGrid control on page with 100% width.
When vertical scroll appears on the grid, its extends page width with scrollbar's width. In this case the column's header and item style width is the same.
I use tablelayout:fixed property in mastertableview. If I don't use this property the problem is still exists.

If I put the radgrid in a table with table-layout:fixed, its doesn't extend page, but the column's header and item style width not the same.

How should I resolve this issue?
Thanks

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 16 Jul 2012, 06:59 AM
Hello Tamas,

With reference to this forum thread,
  1. don't set Width="100%" for the MasterTableView if its TableLayout is "Fixed" - i.e. if you have explicitly set so, or if you use static headers with explicit column widths or with grouping / hierarchy. Setting a 100% width in this case will cause an unwanted horizontal scrollbar in IE6 / 7.
  2. if the RadGrid is used with fixed width and static headers and you set some column widths, it is good to leave one column with no width, so that it can adjust for the cross-browser inconsistency.

Hope this helps.

Thanks,
Princy.

Tags
Grid
Asked by
Tamas
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or