RadSpinEditor - Removing Up & Down Buttons

6 posts, 1 answers
  1. Bradley Lane
    Bradley Lane avatar
    22 posts
    Member since:
    Aug 2012

    Posted 18 Mar 2009 Link to this post

    Hi,

    Is it possible to remove the up and down buttons from RadSpinEditor?
    I would like to use it as a kind of Numeric TextBox with built in validation and range checking.

    Thanks,
    Brad

  2. Answer
    Nikolay
    Admin
    Nikolay avatar
    1803 posts

    Posted 18 Mar 2009 Link to this post

    Hello Bradley Lane,

    Thank you for your question.

    It is possible to remove the buttons of RadSpinEditor. For additional information, please refer to the following Knowledge Base article: Creating numeric textbox.

    Kind regards,
    Nikolay
    the Telerik team


    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Bradley Lane
    Bradley Lane avatar
    22 posts
    Member since:
    Aug 2012

    Posted 18 Mar 2009 Link to this post

    Thanks Nikolay,

    This is a good solution and suits my needs!

    What are the chances of getting this functionality as property of RadSpinEditor in a future release?

    Thanks,
    Brad
  5. Nikolay
    Admin
    Nikolay avatar
    1803 posts

    Posted 20 Mar 2009 Link to this post

    Hi Bradley Lane,

    A property to hide the buttons is a good feature to add, indeed. It will be implemented in our next service pack.

    I have updated your Telerik points for the suggestion. If you have additional questions, feel free to contact me.

    Kind regards,

    Nikolay
    the Telerik team


    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  6. Helmy
    Helmy avatar
    3 posts
    Member since:
    Dec 2010

    Posted 21 Jul 2011 Link to this post

    hi ,
    i want to use the event (key down) with  radSpinEditor and it is not working 

    Thanks,
    helmy
  7. Nikolay
    Admin
    Nikolay avatar
    1803 posts

    Posted 25 Jul 2011 Link to this post

    Hi Helmy,

    Thank you for writing.

    For our small editors we use the standard TextBox control for the textbox part. In order to use the KeyDown event of RadSpinEditor, please subscribe to the KeyDown event of its TextBoxItem:
    public Form1()
    {
        InitializeComponent();
      
        this.radSpinEditor1.SpinElement.TextBoxItem.KeyDown += new KeyEventHandler(TextBoxItem_KeyDown);
    }
      
    void TextBoxItem_KeyDown(object sender, KeyEventArgs e)
    {
        throw new NotImplementedException();
    }

    We will consider improving the API of RadSpinEditor allowing you to directly work with the KeyDown event of the control.

    I hope this helps.

    Best wishes,
    Nikolay
    the Telerik team

    Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

Back to Top
UI for WinForms is Visual Studio 2017 Ready