I have the following DataTemplate:
that I set to a CellTemplate of a GridViewDataColumn dynamically. I also have the DataMemberBinding of the column set to a property ( MyDate) of some object. The MyDate property binding (TwoWay) is done at runtime in the code behind.
<DataTemplate x:Name="DatePickerCellTemplate" x:Key="DatePickerCellTemplate"> |
<telerik:RadDatePicker SelectedDate="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type telerik:GridViewCell}},Path=Value, Mode=TwoWay}" /> |
</DataTemplate> |
I am able to get the value of MyDate appear in the RadDatePicker. But it is not working the other way round, i.e. the changes are propogated back to the MyDate property.
Am i missing something ?