I want to display/edit a decimal value (from SQL2005). I have tried both UltraTextEditor and UltraNumericEditor, but neither seem quite right.
Firstly, UltraTextEditor:
When I use the UltraTextEditor, the decimal point does weird things. When the user hits it (the decimal point), it sends the curser to the start of box. So if the user attempts to input "1.3", it will end up as "31" (No decimal point, and the 3 is in the wrong position).
Secondly, UltraNumericEditor
Now the UltraNumericEditor seems to work a bit better - I am able to enter in the numbers I want to (and it accepts the decimal point). I have turned off the mask, but the decimal point that is always there remains. This means that if the user clicks on the control (UltraNumericEditor) which is currently null, they may click after the decimal point, and then enter in the number (a whole number, such as 25), but it gets entered after the decimal point (to end up as 0.25).
What am I doing wrong here? Why does it seem so damn hard to edit decimals with infragistics controls?
I am having the same problem. Any solution?
Thanks,
Doug
Yep.
When setting the databinding I need to set the DataSourceUpdateMode to OnValidation.
I set my databinding via code, so in the line of code that binds a control to the datasource, it now looks like this:
control.DataBindings.Add(propertyName, this.itemBindingSource, dataMember, true,System.Windows.Forms.DataSourceUpdateMode.OnValidation);
I still dont much likethe UltraNumericEditor (how the decimal point works in that), but at least the UltraTextEditor does what I want it to now.
I have the same problem. Is this likely to be fixed in a future release? I can't imagine anyone would find the permanent decimal place even remotely useful. If someone wants to input "1.5", they would type "1" then "." then "5". They would never press 1 then tab then 5. The ability to click on either side of the permanent decimal place is confusing and even worse can lead to incorrect data being input. E.g. type "1.5" if you've clicked to the right of the decimal place and it will store "0.15". It should surely detect that the decimal place has been keyed and store "1.5" regardless of where you clicked?
Hmmm. I'm not sure I can help you then. In my case I rectified it with the code in my previous post. Not sure what to do if it isnt bound.
Hi, In my case the controls are not databound. What then?