NullText property should not be ignored when DropDownStyle property is DropDownList. One shouldn't have to utilize the Text property or create a dummy object to simulate this behavior as discussed here: https://www.telerik.com/forums/nulltext-property-doesn-t-work-in-raddropdown?actionMode=replyPost&postId=0a021bbb-f40a-4263-a1af-c87b33c17467 Please add!!! I struggle with this whenever I'm using data bound drop downs.
Please refer to the attached sample project.
Use the following code snippet and click the button to delete the first item from the BindingList:
BindingList<DoctorTest> list = new BindingList<DoctorTest>();
public RadForm1()
{
InitializeComponent();
for (int i = 0; i < 5; i++)
{
list.Add(new DoctorTest(i,"Item"+i));
}
this.radDropDownList1.DisplayMember = "Name";
this.radDropDownList1.ValueMember = "Id";
this.radDropDownList1.DataSource = list;
this.radDropDownList1.SelectedIndex = 4;
this.radDropDownList1.SelectedValueChanged+=radDropDownList1_SelectedValueChanged;
}
private void radDropDownList1_SelectedValueChanged(object sender, EventArgs e)
{
RadMessageBox.Show(this.radDropDownList1.SelectedValue +" ---");
}
public class DoctorTest
{
public int Id { get; set; }
public string Name { get; set; }
public DoctorTest(int id, string name)
{
this.Id = id;
this.Name = name;
}
}
private void radButton1_Click(object sender, EventArgs e)
{
list.RemoveAt(0);
}
The currently applied theme is VisualStudio2022Light. The button its move down due to the scaling mechanism.
Add option to enter new value that is independent from the data source or items.
Auto-complete items overlap in the VisualStudio2022 theme:
Hi,
When using a RadDropDownList component and the RadVirtualKeyboard component I have a problem. The AutoCompleteMode.Suggest works fine the first time I click on RadVirtualKeyboard but for the other clics the suggested items don't appears on the screen.
Regards
Gilles