This is a migrated thread and some comments may be shown as answers.

Update viewmodel only on lost focus

1 Answer 60 Views
NumericUpDown
This is a migrated thread and some comments may be shown as answers.
THOMAS
Top achievements
Rank 1
THOMAS asked on 29 Jul 2011, 09:44 AM

Dear Sir,

I use RadNumericUpDown control in RadGridView / GridViewDataColumn / CellEditTemplateSelector

<DataTemplate x:Key="DtNumberKuendigungsfrist" >

           <Controls2:RadNumericUpDown Value="{Binding Path=Kuendigungsfrist, Mode=TwoWay}"

                                        IsEditable="True" Minimum="0" Maximum="9999" SmallChange="1" LargeChange="4"

                                        ValueFormat="Numeric" NumberDecimalDigits="0"/>

</DataTemplate>

Every time I press the small arrows up or down, the value in my viewmodel is changed immediately. How can I change the behavior of this control, to update the viewmodel only, when the focus in RadNumericUpDown is lost?

Best Regards

1 Answer, 1 is accepted

Sort by
0
Yana
Telerik team
answered on 01 Aug 2011, 11:48 AM
Hello Thomas,

I'm afraid that this behavior of RadNumericUpDown cannot be modified - the ViewModel is updated as soon as the value is changed.

All the best,
Yana
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>

Tags
NumericUpDown
Asked by
THOMAS
Top achievements
Rank 1
Answers by
Yana
Telerik team
Share this question
or