Hi all,
I have some issues with the control RadDropDownList and particularly with the font size. It seems that the issues appears only with high DPI screen.
I am creating programmatically a RadDropDownList as follow. The drop down list is displayed inside a tablelayoutpanel
var radDropDownListCategory = new Telerik.WinControls.UI.RadDropDownList();
radDropDownListCategory.Dock = System.Windows.Forms.DockStyle.Fill;
radDropDownListCategory.Name = $"radDropDownListCategory_{Guid.NewGuid().ToString()}";
radDropDownListCategory.AutoSize = false;
radDropDownListCategory.DropDownAnimationEnabled = false;
radDropDownListCategory.MaximumSize = new System.Drawing.Size(0, 50);
radDropDownListCategory.RootElement.MaxSize = new System.Drawing.Size(0, 50);
radDropDownListCategory.DropDownListElement.ListElement.Font = new System.Drawing.Font("Segoe UI", 9F);
radDropDownListCategory.Font = new System.Drawing.Font("Segoe UI", 9F);
radDropDownListCategory.ListElement.Font = new System.Drawing.Font("Segoe UI", 9F);
radDropDownListCategory.RootElement.Font = new System.Drawing.Font("Segoe UI", 9F);
radDropDownListCategory.AutoSizeItems = true;
It seems that with high DPI screen i have the following behavior:
- the dropdown list font size is ok and match my settings (9)
- when i select an element from the dropdown list, the select element is displayed in the textbox but with a font size is much bigger
Do you have any idea how to solve this issue? This issue does not appear with lower dpi screen apparently