Update viewmodel only on lost focus

2 posts, 0 answers
    THOMAS avatar
    12 posts
    Member since:
    Jan 2011

    Posted 29 Jul 2011 Link to this post

    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"/>


    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

  2. Yana
    Yana avatar
    4547 posts

    Posted 01 Aug 2011 Link to this post

    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,
    the Telerik team

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

  3. DevCraft banner
Back to Top