Вопрос

My Telerik RadGrid data columns are no longer aligned with the column headers. These Telerik ASP.Net Ajax (web forms) RadGrids used to look fine. Here is how they look now:

enter image description here

The issue corrects itself when I re-size a column. Also, the issue corrects itself if FrozenColumnCount >= 1 and I move the horizontal scroll bar. There have been no recent code changes but I have upgraded to Telerik.Web.UI v.2013.3.1114.40. This seems to be when the problem started. Can I use the upgrade wizard to downgrade to an older version? I'd rather not downgrade. Instead how can I programmatically resize the grid when it loads?

I'm using StackOverflow instead of Telerik support in hopes of getting a quick resolution to this problem.

Thanks in advance.

Это было полезно?

Решение

Setting the MasterTableView Width to 100% makes the problem go away:

<MasterTableView DataKeyNames="ContactKey" CommandItemDisplay="Top" Width="100%">

As noted by Telerik support here: RadGrid Column header and data item alignment problem.

Другие советы

Something else to note: If you set ClientIDMode to "Static", header alignments can fail to work when using static headers.

Remove UseStaticHeaders='True'.

RadGrid frozen column properly not working.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top