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?