Last Updated: 30 Jul 2019 08:06 by ADMIN
Created on: 29 Jul 2019 17:11
Category: DataLayout
Type: Bug Report
RadDataLayout: TextPosition render bug when it is set to Top

TextPosition label sizing is incorrect. Regardless of AutoSize and AutoSizeLabels settings, only the first label size is calculated correctly. I've attached a project and a screenshot of the issue. It seems size isn't calculated if TextPosition == Telerik.WinControls.UI.LayoutItemTextPosition.Top.


1 comment
Posted on: 30 Jul 2019 08:06
Hi Megan,

Thanks for reporting this. I have updated your Telerik Points.

To workaround this set the following properties: 
private void RadDataLayout1_ItemInitializing1(object sender, DataLayoutItemInitializingEventArgs e)
    e.Item.ControlVerticalAlignment = RadVerticalAlignment.Bottom;
    e.Item.TextPosition = Telerik.WinControls.UI.LayoutItemTextPosition.Top;
    e.Item.TextAlignment = ContentAlignment.TopCenter;
    e.Item.MaxSize = new Size(0, 40);

In addition you can set the default item height as well: 
radDataLayout1.ItemDefaultHeight = 40;

I hope this helps. Should you have any other questions, do not hesitate to ask.
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.