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

RadSpineditor - Only ArrowKeys

1 Answer 25 Views
SpinEditor
This is a migrated thread and some comments may be shown as answers.
Flavio
Top achievements
Rank 1
Flavio asked on 26 Jun 2014, 02:53 PM
Hi!
I would like know if is possible disable the textbox of RadSpineditor? I need to enable only ArrowKey.

Tks.
Maia.

1 Answer, 1 is accepted

Sort by
0
Dimitar
Telerik team
answered on 01 Jul 2014, 08:01 AM
Hi Flavio,

Thank you for contacting us.

To achieve the desired functionality you can subscribe to the text box item KeyDown event and suppress any key press:
public Form1()
{
    InitializeComponent();
    radSpinEditor1.SpinElement.TextBoxItem.KeyDown += TextBoxItem_KeyDown;
}
 
void TextBoxItem_KeyDown(object sender, KeyEventArgs e)
{
    e.Handled = true;
    e.SuppressKeyPress = true;
}

Please let me know if there is something else I can help you with. 
 
Regards,
Dimitar
Telerik
 
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
 
Tags
SpinEditor
Asked by
Flavio
Top achievements
Rank 1
Answers by
Dimitar
Telerik team
Share this question
or