Dear Support,
using the RadGridView inside a DataTemplate, the bound SelectedItem becomes null in the first VM
after changing the VM to a second, different, VM of the same type.
Is this a bug or am I doing wrong?
Find here a solution that reproduces this behaviour.
TestRadGridViewSelectedItem.zip
Version is: 2011.3.1116.40 / Runtime is v4.0.30319
Thanks Martin
using the RadGridView inside a DataTemplate, the bound SelectedItem becomes null in the first VM
after changing the VM to a second, different, VM of the same type.
<
ContentPresenter
Content
=
"{Binding CurrentContentViewModel}"
>
<
ContentPresenter.Resources
>
<
ResourceDictionary
>
<
DataTemplate
DataType
=
"{x:Type local:ContentViewModel}"
>
<
telerik:RadGridView
ItemsSource
=
"{Binding Items}"
SelectedItem
=
"{Binding SelectedItem}"
/>
<!--<
ListView
ItemsSource
=
"{Binding Items}"
SelectedItem
=
"{Binding SelectedItem}"
/>-->
</
DataTemplate
>
</
ResourceDictionary
>
</
ContentPresenter.Resources
>
</
ContentPresenter
>
Alternatively i tried ListView, which behaves as expected.Is this a bug or am I doing wrong?
Find here a solution that reproduces this behaviour.
TestRadGridViewSelectedItem.zip
Version is: 2011.3.1116.40 / Runtime is v4.0.30319
Thanks Martin