Hello everyone,
I tried to use the RadDropdownlist in my our project based on Winform, but when i changed the SelectedIndex there is an issue happened, it changed the TextAlignment to center automatically?
Although i tried many solutions to fix it but i cannot, so please help me to solve this issue :(
Bellow are my code, it happened on two bold lines.
var ddl = control as RadDropDownList;if (ddl != null){ if (!string.IsNullOrWhiteSpace(value)) { var selectedItem = ddl.Items.FirstOrDefault(x => x.Value != null && x.Value.ToString() == value); if (selectedItem != null) { ddl.SelectedItem = selectedItem; } } else { ddl.SelectedIndex = -1; ddl.Text = $"Select {childField.FieldName}"; }}else{ var maskedBox = control as MarsMaskedEditBox; if (maskedBox != null) { maskedBox.Value = value; } else { control.Text = value; }}