This is a migrated thread and some comments may be shown as answers.

Overwite

1 Answer 89 Views
NumericUpDown
This is a migrated thread and some comments may be shown as answers.
Ludwig
Top achievements
Rank 1
Ludwig asked on 24 May 2011, 09:45 PM
I have a RadNumericUpDown control, with default value of 0.00; but I would like to do the following: when the user clicks in it: the cursor position is placed at the beginning and when the user types, it overwrites the value.  

Can this be achieved?

EDIT: in fact what I want is to put the RadNumericUpDown in overwrite mode. Can this be done?

EDIT 2: for now I found this workaround,which puts it in overwrite model:

        private bool _lengthInputInsertActivated = false;
        private void LengthNumericUpDown_GotFocus(object sender, RoutedEventArgs e)
        {
            if (!_lengthInputInsertActivated)
            {
                KeyEventArgs e1 = new KeyEventArgs(Keyboard.PrimaryDevice, Keyboard.PrimaryDevice.ActiveSource, 0, Key.Insert);
                e1.RoutedEvent = Keyboard.KeyDownEvent;
                InputManager.Current.ProcessInput(e1);
                _lengthInputInsertActivated = true;
            }
        }

1 Answer, 1 is accepted

Sort by
0
Konstantina
Telerik team
answered on 27 May 2011, 09:28 AM
Hello Ludwig,

We are glad that you have resolved the issue yourself.

We will be happy to assist you if you have any other questions about our controls.

Greetings,
Konstantina
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
NumericUpDown
Asked by
Ludwig
Top achievements
Rank 1
Answers by
Konstantina
Telerik team
Share this question
or