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

RadSpinEditor - Removing Up & Down Buttons

5 Answers 78 Views
Buttons, RadioButton, CheckBox, etc
This is a migrated thread and some comments may be shown as answers.
Bradley Lane
Top achievements
Rank 1
Bradley Lane asked on 18 Mar 2009, 05:24 AM
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

5 Answers, 1 is accepted

Sort by
0
Accepted
Nikolay
Telerik team
answered on 18 Mar 2009, 10:17 AM
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.
0
Bradley Lane
Top achievements
Rank 1
answered on 18 Mar 2009, 11:06 PM
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
0
Nikolay
Telerik team
answered on 20 Mar 2009, 01:05 PM

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.
0
Helmy
Top achievements
Rank 1
answered on 21 Jul 2011, 08:16 AM
hi ,
i want to use the event (key down) with  radSpinEditor and it is not working 

Thanks,
helmy
0
Nikolay
Telerik team
answered on 25 Jul 2011, 10:22 AM
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!

Tags
Buttons, RadioButton, CheckBox, etc
Asked by
Bradley Lane
Top achievements
Rank 1
Answers by
Nikolay
Telerik team
Bradley Lane
Top achievements
Rank 1
Helmy
Top achievements
Rank 1
Share this question
or