Page 1 of 1

[SOLVED] to deselect combobox: comboBox.SelectedIndex = -1; NOT Working !

Posted: Tue Jul 19, 2016 3:19 am
by Sesztak
Dear JS-Support,

We have to unselect combox items programattically:

to deselect combobox: comboBox.SelectedIndex = -1; NOT Working !

instead: allways the first element (item) selected in the UI.

I think it is a bug.

Is there any workaround to this problem?

Backgound info: we fetch a list of items to combobox ( by fill it with .Items.Add(item) ),
and we need it to be unselected at the very first time - as there is no default or privileged item in the list.

Thanks for your kind reply,
Best Regards,
Péter

Re: to deselect combobox: comboBox.SelectedIndex = -1; NOT Working !

Posted: Tue Jul 19, 2016 5:09 am
by JS-Support @Userware
Thanks for reporting this issue. We are going to fix it before the end of the week.

Re: to deselect combobox: comboBox.SelectedIndex = -1; NOT Working !

Posted: Sun Jul 24, 2016 11:53 am
by JS-Support @Userware
Sorry, the fix did not make it for Beta 9.0 (available in a few hours) but it will be released soon after. I will keep you updated.

Thanks.
Regards,
JS-Support

Re: to deselect combobox: comboBox.SelectedIndex = -1; NOT Working !

Posted: Mon Aug 29, 2016 6:44 am
by JS-Support @Userware
Hi,

We completely revamped the handling of ItemsSource and the ComboBox in Beta 9.1.

The issue should now be fixed.

You can download it from:

http://forums.cshtml5.com/viewforum.php?f=6

Thank you.
Regards,
JS-Support