I use a UltraNumericEditor that is set to have 3 decimal places. I have enabled the spinnerButton so I can easily alter the number. When you click the spinner it increments the number by either 1 or 0.001. Ideally I would like to change this by 0.1. Can this be done?
When the value of the decimal reaches 0.999, 1 click up sets the value to 0.000, I would like this to show 1.000.
I thought about capturing the EditorSpinButtonClick event and maintaining it manually but the event doesn't seem to trigger. Am I missing something.
I've added the eventhandler like so:
this.ultraNumericEditor1.EditorSpinButtonClick += new Infragistics.Win.UltraWinEditors.SpinButtonClickEventHandler(this.ultraNumericEditor1_EditorSpinButtonClick);
And my event handler is simply:
{
}
Ideas please?
Hi,
There are two different ways to have a spin button the control. The default spin button has always been there and you can't change the increment.
The second way is to use editor buttons. These are buttons in the ButtonsRight or ButtonsLeft collection of the control. So what you probably want to do is turn off the regular spin button and add a SpinEditorButton to the ButtonsRight collection. This button will trigger the EditorSpinButtonClick event.
Hello,
Can I change the incrementer (I need 0.1 increment), withoot writing routines for handling spinbuttonclickEvent?
No.
You would have to use an EditorButton as I described above and handle the SpinEditorButtonClick event.
Hi Mike,
I am also facing the problem related to Spin control.
My value of the spin cell is 200.00 Now when select entire text of the cell and I click the down arrow it wont allow me to decrement the value as
digits after decimal pointhas reached to 00 but i want user to allow decrement.Means if the value is 200.00 and user clicks on the down arrow,
the value should become 199.99 and not 200.99 which normally happens when I use the SpinWrap property.
How can I handle this scenario.
Need help,
Thank you
Set MinValue and MaxValue on the column to enforce the 1 to 12.
You might also want to check the Style property of the column. There are lots of new options there and one of them may already do this for you. Otherwise, I think you would have to set the CellActivation (or Activation, I forget which) on the column to disable typing, and also set the ButtonDisplayStyle to Always so the buttons always display.
Edit: The Style property and CellActivation are if you are using the spin button in a grid cell. For a standalone control, I'm not sure if what you want is possible.
My requirement is like this.I want the numericeditor to have minvalue as 1 and maxvalue as 12.The user should only use the Up/down arrows to increment/decrement value.The user should not be able edit the value by typing in it.Is this posssible.
Thanks