Cannot set SelectedIndex/SelectedItem

Hi,

I have a simple sfPicker where you can select a year. 
Initially I filled the picker with a observable collection of strings representing the years. I also have some logic to set the initial selected year to the current year using the SetSelectedIndex method. All worked fine.

But then I decided to use a model object 'Year' instead. So now I'm populating a observable collection of Year objects. The toString method is overwritten in this model object to show the year. This works fine, the picker shows all years.
But the SelectedItem/SelectedIndex does not work anymore. When I say SelectedIndex = 0 it just doesn't select the first value (or any other year). Does this has something to do with using my own model object?

Somebody experienced this before?

1 Reply

RB Rabhia Beham Kathar Mideenar Syncfusion Team November 3, 2017 02:57 PM UTC

Hi Peter Catteeuw,

Thanks for Contacting Syncfusion Support.

Query: Cannot set the SelectedIndex property.

We have fixed the reported issue and the issue fix will be available in the upcoming Volume 4 2017 release .We will let you know once it has been rolled out.

Please let us know if you have any concern.

Regards,
Rabhia Beham K.
 


Loader.
Up arrow icon