What is the difference between using the HeaderStyle-Width attribute of RadGrid vs the Width attribute of ItemStyle? I have experiemented with both and they do not always appear to be equivalent. Can anyone add any color to how these two work?
HeaderItemStyle property controls the appearance of the header item in a Telerik RadGrid control where as ItemStyle represents the style of data items in a GridTableView control. But from my understanding to set the width of a column you need to set the HeaderStyle-width instead of ItemStyle-width.
You have hit the nail on the head with regard to my question. In my experimentation it seems I need to use the HeaderStyle-width to set the width of a column. I was really looking for confirmation of this, which you have offered, but also some explanation as to why and just what ItemStye width is for? I blew a few hours playing with these two trying to narrow in on the correct approach.
0
Accepted
Dimo
Telerik team
answered on 09 Apr 2009, 05:41 AM
Hello,
In short, I am not aware of cases in which ItemStyle-Width should be used at all. This property exists only because ItemStyle inherits from TableItemStyle.
For column widths, please use HeaderStyle-Width only.
Best wishes,
Dimo
the Telerik team
Check out
Telerik Trainer
, the state of the art learning tool for Telerik products.