How to get components into nested TableLayoutPanel

1 Answer 20 Views
LayoutControl
Kai
Top achievements
Rank 1
Kai asked on 22 Jan 2025, 09:52 AM | edited on 22 Jan 2025, 10:04 AM

Hi Support Team,

I am having difficulties using WinForms UI components in combination with System.Windows.Forms.TableLayoutPanel. I wanted to follow the suggestions of using this panel to create HDPI aware UIs.

Component nesting is like this:

  • RadForm
    • RadLayoutControl
      • LayoutControlTabbedGroup
        • LayoutControlGroupItem1
        • LayoutControlGroupItem2
          • LayoutControlItem1
            • TableLayoutPanel1
      • LayoutControlItem2
        • TableLayoutPanel2
      • LayoutControlItem3
        • RadButton1

When I am in the default "CSharp Form Editor" I'm not able to place the UI components into the TableLayoutPanel. The designer always tries to create a new LayoutControlItem in the RadLayoutControl. E.g. when trying to add a RadButton into the TableLayoutPanel2, it creates the RadButton1 right next to the TableLayoutPanel2 (or below/above;) into a new LayoutControlItem3, but not IN the desired column/row of the TableLayoutPanel2.

I tried a workaround by creating a standard Form and placing a TableLayoutPanel into it. Then adding all the UI components I want in it and afterwards copy+paste it into the LayoutControlGroupItem of another RadForm. However this approach seems to not attach it to any LayoutControlItem by using the Designer. It just gets added to the RadLayoutControl. I then tried to manually write the Designer Code by looking at how the Example code is generated, but that also is not reliable and I'm having an issue with getting the TableLayoutPanel docked to the "manually created" LayoutControlItem.

My question:

  1. How can I get this to work or is this combination not intended/supported?

Environment

  • Visual Studio 2022 v17.12.4
  • .NET Framework 4.8
  • Telerik WinForms UI 2024.4.1113.48

Added my example project and a screenshot of the designer while dragging a new RadLabel (or similar) onto the TableLayoutPanel.

Edit1: Added another screenshot of intended behavior.

 

Thanks and regards,

Kai

1 Answer, 1 is accepted

Sort by
0
Nadya | Tech Support Engineer
Telerik team
answered on 23 Jan 2025, 10:14 AM

Hi, Kai,

I have noticed that you submitted a ticket asking the same problem. For more information, please see our answer in Ticket ID: 1676561

Regards,
Nadya | Tech Support Engineer
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Tags
LayoutControl
Asked by
Kai
Top achievements
Rank 1
Answers by
Nadya | Tech Support Engineer
Telerik team
Share this question
or