RadSpineditor - Only ArrowKeys

2 posts, 0 answers
  1. Flavio
    Flavio avatar
    22 posts
    Member since:
    Jan 2011

    Posted 26 Jun 2014 Link to this post

    Hi!
    I would like know if is possible disable the textbox of RadSpineditor? I need to enable only ArrowKey.

    Tks.
    Maia.
  2. Dimitar
    Admin
    Dimitar avatar
    1415 posts

    Posted 01 Jul 2014 Link to this post

    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.
     
  3. UI for WinForms is Visual Studio 2017 Ready
Back to Top