RadNumericUpDown - "WHY BUG"?
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?
<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?