It seems RadListView does not have an Items property nor does it have a SelectedIndex. What's the best way to select the first item in the listview after the data has been bound?
2 Answers, 1 is accepted
0
Lance | Manager Technical Support
Telerik team
answered on 13 Sep 2017, 06:27 PM
Hi George,
For this you can use the SelectedItem property, you can set it using the first item in the bound collection.
Here is an example of binding it to a "SelectedItem" in your view model:
PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
}
}
Notice that setting the SelectedEmail is what notifies the RadListView which item is to be selected because of the Two-Way binding.
Regards,
Lance | Tech Support Engineer, Sr.
Progress Telerik
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Explore the
Telerik Feedback Portal
and vote to affect the priority of the items