Posted on Sep 8, 2011 (permalink)
<
telerik:RadMaskedTextBox
Name
=
"tbNumeric"
MaskType
"Numeric"
Mask
"d"
Value
""
ValueChanging
"NumberInput_ValueChanging"
/>
private void NumberInput_ValueChanging(object sender, Telerik.Windows.Controls.RadMaskedTextBoxValueChangingEventArgs e)
{
if (e.NewValue != null)
e.Handled = ((double)e.NewValue < 0);
}
Reply
Posted on Sep 14, 2011 (permalink)
We agree that this does not work correctly in the RadMaskedTextBox. We highly suggest you to use the new RadMaskedNumericInput control which handles this scenario nice. You can examine this in the attached solution. Please let us know if you need more info on this.
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
Posted on Oct 19, 2011 (permalink)
Posted on Oct 24, 2011 (permalink)
You can start with this demo of the RadMaskedInput control. Pressing the "-" key sets minus and makes the entered number negative. Pressing this key second time sets back the number to positive and so on. Do you actually need something more specific ?
Back to Top
[ Silverlight MaskedTextBox Features | Documentation | Demos | Telerik TV | Self-Paced Trainer ]
UI controls for ASP.NET AJAX, MVC, WPF, Silverlight, Windows Forms and Windows Phone. Visual Studio productivity tools. Reporting and data layer solutions.
HTML5 / JavaScript tools for Web and Mobile applications
Functional, Performance, Load and Mobile Software Testing
CMS, Mobile Web, Ecommerce, Emarketing, Social Media
Project management software inspired by Agile best practices
It seems you haven't bookmarked any pages. Fix that by clicking the button below