Hello,
I am trying to two-way bind to a List<Stores> in order to pre-populate the auto suggest box and get its updated values. I tried using the following:
However, I keep getting "Collection was of a fixed size" exceptions. I've tried no Mode too.
BookstoreLookup is an ObservableCollection<BookstoreModel> and SelectedNoticeItem.Bookstores is a List<BookstoreModel> (I also tried ObservableCollection).
Thanks for your help.
John
I am trying to two-way bind to a List<Stores> in order to pre-populate the auto suggest box and get its updated values. I tried using the following:
<
telerik:RadAutoCompleteBox
Name
=
"radAutoCompleteBox1"
Grid.Column
=
"2"
Grid.Row
=
"0"
DataContext
=
"{Binding DetailViewModel}"
SelectionMode
=
"Multiple"
WatermarkContent
=
"Type a name"
TextSearchMode
=
"Contains"
ItemsSource
=
"{Binding BookstoreLookup}"
DisplayMemberPath
=
"ShortName"
TextSearchPath
=
"ShortName"
AutoCompleteMode
=
"Suggest"
SelectedItems
=
"{Binding SelectedNoticeItem.Bookstores, Mode=TwoWay}"
/>
However, I keep getting "Collection was of a fixed size" exceptions. I've tried no Mode too.
BookstoreLookup is an ObservableCollection<BookstoreModel> and SelectedNoticeItem.Bookstores is a List<BookstoreModel> (I also tried ObservableCollection).
Thanks for your help.
John