RadNumericUpDown - "WHY BUG"?

2 posts, 0 answers
  1. kity
    kity avatar
    71 posts
    Member since:
    Mar 2012

    Posted 06 Feb 2014 Link to this post

    RadNumericUpDown - "WHY BUG"?


    <telerik:RadNumericUpDown UpdateValueEvent="PropertyChanged" ValueChanged="RadNumericUpDown_ValueChanged"
             Value="{Binding Path=LineCount, Mode=TwoWay, FallbackValue=0}" IsInteger="True" Minimum="0" NullValue="0" Maximum="100" />
               
    private void RadNumericUpDown_ValueChanged(object sender, Telerik.Windows.Controls.RadRangeBaseValueChangedEventArgs e)
    {
        var rnudCounter = (sender as RadNumericUpDown);
        if (rnudCounter == null)
            return;    try
        {               
            rnudCounter.ValueChanged -= this.RadNumericUpDown_ValueChanged;                       
            TelerikMessage.Confirm("set old number or not?"), (s, ea) =>
            {
                if (ea.DialogResult == true)
                {
                   return;
                }
                else
                {
                    e.NewValue = e.OldValue;
                    // (sender as RadNumericUpDown).Value = e.NewValue;
                }
            });                 
              
        }
        finally
        {
            rnudCounter.ValueChanged += this.RadNumericUpDown_ValueChanged;
        }
    }



    Telerik not like lambda expression. Why?
    I triger valueChange only one time with simple click on control (-/+), but it entry into event RadNumericUpDown_ValueChanged() two times. Why?
    I set property NewValue but value that control show is diferent. Why?



  2. kity
    kity avatar
    71 posts
    Member since:
    Mar 2012

    Posted 06 Feb 2014 in reply to kity Link to this post

    May be problem is becouse biding and codebehind mismatch.
  3. DevCraft banner
Back to Top