Completed
Last Updated: 18 Feb 2021 14:38 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.

 

0 comments