Also, I'd like to know if there is a way to disable the increase/decrease value using the up/down arrows.
Thanks for your help.
1 Answer, 1 is accepted
answered on 15 Dec 2011, 11:48 AM
Thank you for writing.
At this moment the value is not changed yet. So it is normal to get the old value in this event.
You can get the actual value on ValueChanged event. Please refer to code snippet which demonstrates you can cancel the RadMaskedEditBox value based on a certain condition.
dim oldValue as Object= ""
PrivateSubRadMaskedEditBox1_ValueChanging( sender AsSystem.Object, e AsSystem.ComponentModel.CancelEventArgs) HandlesRadMaskedEditBox1.ValueChanging
me.oldValue = RadMaskedEditBox1.Value
'prevent user to enter 7 as single value
PrivateSubRadMaskedEditBox1_ValueChanged( sender AsSystem.Object, e AsSystem.EventArgs) HandlesRadMaskedEditBox1.ValueChanged
if me.RadMaskedEditBox1.Value = 7 then
me.RadMaskedEditBox1.Value = oldValue
I hope this helps.
the Telerik team