Declined
Last Updated: 23 Jan 2019 16:08 by ADMIN
Nebojsa Mancic
Created on: 05 Jan 2019 21:31
Category: MaskedInput
Type: Feature Request
0
Add "clear value key" to radmaskednumericinput
I think that would be nice to add "clear value key" to radmaskednumericinput, it should be Delete key as default value, and when you press Delete key while editing , valued should be set to zero, as when Clear button clicked.
1 comment
ADMIN
Dilyan Traykov
Posted on: 08 Jan 2019 15:09
Hello Nebojsa,

Thank you for your feedback.

However, as the Delete key is handled internally based on the setup of the control, implementing the desired functionality will not be that straightforward.

You can still achieve this, though, by adding a KeyBinding to the ClearCommand of the RadMaskedNumericInput control, like so:

<telerik:RadMaskedNumericInput>
    <telerik:RadMaskedNumericInput.InputBindings>
        <KeyBinding Modifiers="Ctrl" Key="D" Command="{Binding ClearCommand, RelativeSource={RelativeSource AncestorType=telerik:RadMaskedNumericInput}}" />
    </telerik:RadMaskedNumericInput.InputBindings>
</telerik:RadMaskedNumericInput>

You can also extract this in an attached behavior and set it via an implicit style so that it is applied to all masked input controls in your application.

Please let me know whether you find such an approach applicable.

Regards,
Dilyan Traykov
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.