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

Frozen Columns And Non-Specified Column Widths

3 Answers 127 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Joshua
Top achievements
Rank 1
Joshua asked on 21 Jan 2009, 03:02 PM
I'm trying to use Frozen columns with static headers and non-specified column widths and are seeing some strange results.

In your example: http://demos.telerik.com/aspnet-ajax/Grid/Examples/GeneralFeatures/FrozenColumns/DefaultCS.aspx if you deleted HeaderStyle.Width;

In Firefox 3.0.5, Internet Explorer 7.0.5730.13, Safari 3.2.1 and Google Chrome 1.0.154.43
- The grid headers overlap in a couple of places
- The last visible column when scrolled to the right is NOT really the last column.  2-5 are missing (IE looses the most)
- When you scroll to the right, random columns are hidden/visible.  This is more obvious if you scroll slowly to the right.

If you use that same example and change the HeaderStyle.Width from 200px to 150px the above problems do not exist, but in FF & Chrome & Safari the Manager column is missing.

It seems like all of the planets have to be aligned to make everything render properly, can you shed some light on this?

3 Answers, 1 is accepted

Sort by
0
Rosen
Telerik team
answered on 26 Jan 2009, 09:49 AM
Hello Joshua,

When using StaticHeaders functionality of our RadGrid it is recommended that the column's HeaderStyle.Width property is set to an appropriate value as stated in this help article.
If a column is not shown when frozen scroll is used you may try adjusting columns' and/or MasterTableView's width.

Please give it a try and let us know if this helps.

Kind regards,
Rosen
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Joshua
Top achievements
Rank 1
answered on 26 Jan 2009, 02:35 PM
I'm sorry it seems that you aren't addressing the real problem and that is really with FROZEN columns.  Static headers work just fine with or without widths.

In regard to the post you linked to, not only does that not say anything about Frozen columns, but  I've also spoken with one of your fellow employees about the exact phrase "the grid columns should declare HeaderStyle.Width" and they have said IT IS NOT REQUIRED, but again the problem is with your Frozen feature.
0
Rosen
Telerik team
answered on 28 Jan 2009, 04:18 PM
Hi Joshua,

Column widths are not required when using static headers without frozen columns. However, with frozen columns, column widths are recommended. In addition, when a column is hidden and the MasterTableView has a specified width, the remaining visible columns will expand to fill the free space.

Kind regards,
Rosen
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Grid
Asked by
Joshua
Top achievements
Rank 1
Answers by
Rosen
Telerik team
Joshua
Top achievements
Rank 1
Share this question
or