Hi good day. I would like a little help with an issue we're facing. We have a grid view, in which I have cells with RadTimePicker in the Edit Template. The problem is that when I enter a value (like 9) and after I pressed tab, the value gets erased. The only way it works it's when the user presses Enter. I realized that the event on CellEditEnded, gets call once with TAB, but NewValue and OldValue are null both. In the case of Enter, that event gets called twice, the first one is the same, NewValue and OldValue are nulls, and the second time I get NewValue = null and OldValue= 9 (the value entered), In my model I have to ignore the null, and that is why the value gets perserved, otherwise, even that way would not work. Why is this happening and how can I solve it. Thanks in advance.
My XAML:
My XAML:
<!--Shift IN--> |
<telerikGridView:GridViewDataColumn Header="Shift-In" UniqueName="ShiftInValidator" DataMemberBinding="{Binding ShiftInValidator}" DataFormatString="{}{0:c}" Width=".115*"> |
<telerikGridView:GridViewDataColumn.CellTemplate> |
<DataTemplate> |
<TextBlock Text="{Binding ShiftInValidator}"></TextBlock> |
</DataTemplate> |
</telerikGridView:GridViewDataColumn.CellTemplate> |
<telerikGridView:GridViewDataColumn.CellEditTemplate> |
<DataTemplate> |
<telerikInput:RadTimePicker SelectedTime="{Binding ShiftInValidator, Mode=TwoWay}" |
EndTime="23:0:0" Culture="en-US"/> |
</DataTemplate> |
</telerikGridView:GridViewDataColumn.CellEditTemplate> |
</telerikGridView:GridViewDataColumn> |