Hi,
I am new to the WPF world but I am trying to use the RadGridView in a ViewModel (MVVM) architecture.
Normally al my ViewModels contain a SelectedProduct property which automatically enables other realted commands in the UI. (change,view, etc).
This is working perfectly in the included ListBox control:
<ListBox ItemsSource="{Binding Products}"
SelectedItem="{Binding SelectedProduct}"
DisplayMemberPath="Product.ProductName">
</ListBox>
When trying the same in your Telerik RadGrid it fails my property setter never gets called.
<telerik:RadGridView telerik:Theming.Theme="Vista"
MultipleSelect="False"
ItemsSource="{Binding Products}" IsReadOnly="False"
SelectedItem="{Binding SelectedProduct}"
ColumnsWidthMode="Fill" AutoGenerateColumns="False">
<telerik:RadGridView.Columns>
The SelectionChanged event off course works and raises every time I click / move on another item but I am expecting my "SelectedProduct" property to be automatically updated (setter never called).
This SelectedProduct property get's called on the getter so actually it's used/read.
Looks like it's not using 2-way binding...
Any ideas what I am doing wrong??