Completed
Last Updated: 06 Sep 2022 09:23 by ADMIN
Release R1 2021 SP2
John
Created on: 17 Feb 2021 14:01
Category: CheckedDropDownList
Type: Bug Report
0
RadCheckedDropDownList: serialized data from the Element hierarchy editor leads to error when running the application

Please follow the steps:

1. Create a brand new project and add a RadCheckedDropDownList on the form.

2. Add two items:

3. Open the Element hierarchy editor and set the Alignment property to the below element: 

This is the serialized code in the Designer.cs:

            this.radCheckedDropDownList1.Items.Add(radCheckedListDataItem1);
            this.radCheckedDropDownList1.Items.Add(radCheckedListDataItem2);
            this.radCheckedDropDownList1.Location = new System.Drawing.Point(13, 13);
            this.radCheckedDropDownList1.Name = "radCheckedDropDownList1";
            this.radCheckedDropDownList1.Size = new System.Drawing.Size(218, 20);
            this.radCheckedDropDownList1.TabIndex = 0;
            ((Telerik.WinControls.UI.TextBlockElement)(this.radCheckedDropDownList1.GetChildAt(0).GetChildAt(2).GetChildAt(0).GetChildAt(0).GetChildAt(0).GetChildAt(0))).Alignment = System.Drawing.ContentAlignment.MiddleCenter;
            ((Telerik.WinControls.UI.TextBlockElement)(this.radCheckedDropDownList1.GetChildAt(0).GetChildAt(2).GetChildAt(0).GetChildAt(0).GetChildAt(0).GetChildAt(0))).MinSize = new System.Drawing.Size(0, 16);
            ((Telerik.WinControls.UI.TextBlockElement)(this.radCheckedDropDownList1.GetChildAt(0).GetChildAt(2).GetChildAt(0).GetChildAt(0).GetChildAt(0).GetChildAt(0))).MaxSize = new System.Drawing.Size(0, 16);
           

4. Save the changes and run the project. As a result you will get an exception since the TextBlockElement is not created yet. It either shouldn't be serialized or not be available in the UI editor.

 

2 comments
ADMIN
Dess | Tech Support Engineer, Principal
Posted on: 06 Sep 2022 09:23

Hello, Curtis, 

I am really sorry to hear that you are experiencing any difficulties with RadCheckedDropDownList when adding items at design time. As the status of the this public feedback item indicates, the item is Completed and the fix was introduced in R1 2021 SP2

I have tested it in the latest version of the Telerik UI for WinForms suite. The TextBlockElement is not available in the Edit UI Elements:

In case you are experiencing any undesired behavior, I would kindly ask you to submit a support ticket from your Telerik account describing the precise scenario. Thus, our Support engineers would gladly assist you. The following article gives more information how to get assistance: https://docs.telerik.com/devtools/winforms/knowledge-base/submit-support-tickets 

Thank you in advance for your cooperation.

Regards,
Dess | Tech Support Engineer, Principal
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Curtis
Posted on: 01 Sep 2022 21:22
I've been tilting at this particular windmill for about 100 hours now...