I've looked through your forum about this but can only find half working workarounds.
Consider the following GridView:
Here I bind to POCO objects that implement INotifyPropertyChanged. As soon as a change is detected, I light up a Save button.
However, the property does not get changed until the user steps out of the cell, thus preventing the immediate click on the save button!
There is a workaround for simple textboxes;
However, this trick fails miserably for Date-fields, since your otherwise great date picker gets supressed. :(
I really want a fix for this, that I consider a bug. Is there any chance of that ever happening?
Consider the following GridView:
<telerik:RadGridView ItemsSource="{Binding ItemsView}" AutoGenerateColumns="False" IsSynchronizedWithCurrentItem="True" ValidatesOnDataErrors="InViewMode" EditTriggers="CellClick" CanUserDeleteRows="True" CanUserInsertRows="True"> <telerik:RadGridView.Columns> <telerik:GridViewComboBoxColumn Header="Currency" DataMemberBinding="{Binding CurrencyCode,UpdateSourceTrigger=PropertyChanged}" ItemsSource="{Binding Path=DataContext.AllCurrencyCodes,RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type UserControl}}}" /> <telerik:GridViewDataColumn Header="Rate" DataMemberBinding="{Binding Rate,UpdateSourceTrigger=PropertyChanged,NotifyOnValidationError=True,ValidatesOnDataErrors=True}" /> </telerik:RadGridView.Columns> </telerik:RadGridView> Here I bind to POCO objects that implement INotifyPropertyChanged. As soon as a change is detected, I light up a Save button.
However, the property does not get changed until the user steps out of the cell, thus preventing the immediate click on the save button!
There is a workaround for simple textboxes;
<telerik:GridViewDataColumn Header="Rate" DataMemberBinding="{Binding Rate,UpdateSourceTrigger=PropertyChanged,NotifyOnValidationError=True,ValidatesOnDataErrors=True}"> <telerik:GridViewDataColumn.CellEditTemplate> <DataTemplate> <TextBox Text="{Binding Rate,UpdateSourceTrigger=PropertyChanged,NotifyOnValidationError=True,ValidatesOnDataErrors=True}"/> </DataTemplate> </telerik:GridViewDataColumn.CellEditTemplate> </telerik:GridViewDataColumn> However, this trick fails miserably for Date-fields, since your otherwise great date picker gets supressed. :(
I really want a fix for this, that I consider a bug. Is there any chance of that ever happening?