문제

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