Hi All,
When I type some value and presses TAB or ENTER button then only I am able to get the selecteditem event.
But is this possible on anyother event like lost focus or dropdown closed event does matter a null object also.
or is there any possibility to reset and clear every value and show empty text by default.
Hello Vishy,
The SelectedItem event is fired when the collection of SelectedItems is changed. Attached is a sample project where the new item is added to this collection if it empty. Otherwise the items of the collection are cleared.
private void Button_Click_2(object sender, RoutedEventArgs e)
{
if (combo1.SelectedItems.Count<=0)
combo1.SelectedItems.Add(coll.Collection.ElementAt(2));
}
else combo1.SelectedItems.Clear();
I hope this helps. Please feel free to let me know if you need additional assistance.
Hi Vishy,
I am just checking if my last reply was helpful for you.
If you require any further assistance on the matter, please do not hesitate to ask.