Hi there,
since updating from v10.2 to v18.1 the DoublePositiveWithSpin doesn't work when clicking the part after the comma and trying to modify the value with arrow keys. It only works using the part before the comma. Was there some change in the API that I'm not aware of?
UltraGridColumn columnEmissivity = m_ultraGrid.DisplayLayout.Bands[0].Columns[iRowEmissivity];columnEmissivity.Style = Infragistics.Win.UltraWinGrid.ColumnStyle.DoublePositiveWithSpin;columnEmissivity.MaskInput = "-nn.nn";Thanks in advance
Flo
PS: I also tried using a sample I found somewhere on this website together with v19.1 which didn't change anything.
Hello Florian,
Thank you for contacting Infragistics!
I have done some looking into this matter and have some questions. What version/service release of v18.1 and v19.1 are you using? When I test this with v19.1.150 I do not reproduce the issue in most cases. I only see this when the starting value is 0.00. Do you see this behavior in any other case?
5554.UltraWinGrid.zip
I'm using 18.1.20181.305 and 19.1.20191.82 and can confirm that your solution file works.
In my sample mentioned above with 19.1.20191.82 it still doesn't work:
UltraGridAddRowUserControl.zip
Do you have any hint what might be the reason?
Yes, that's what I saw, as well. I think you and your users would be happier using WrapCurrentSection. Or WrapAcrossSections, once we get it fixed. :)
I digged out the old release in which it still worked and turns out, that that one's behavior is identical to the behavior I have now with NoWrapping.
Hi Flo,
I looked into this and I think this is correct behavior... even though it seems kinda odd and undesirable. This behavior is not new and it's not related to the change in versions. I tried it out as far back and 9.2 and got the same results.
The issue is that since you are spinning a section, and there's no wrapping, you can't spin down from 00 in the faction part of the value, since that would spin you into a negative number. The fractional part of the value has a range from 00 to 99 and so you can't spin down from 99 without wrapping.
The reason you can't spin up in this case is that the value is already 1.00, so that's the maximum, so spinning up would result in a value of 1.01 which exceeds your MaxValue.Maybe instead of NoWrapping, you should use:
Infragistics.Win.EditorWithMask.SpinWrapBehaviorDefault = Infragistics.Win.UltraWinEditors.SpinWrapBehavior.WrapCurrentSection;
That seems to work the way you want.
Hi Mike,
after taking a second look at it, there's still a problem:
I use this setup:
columnEmissivity.Style = Infragistics.Win.UltraWinGrid.ColumnStyle.DoublePositiveWithSpin; columnEmissivity.MaskInput = "-nn.nn"; columnEmissivity.PromptChar = ' '; columnEmissivity.MinValue = 0f; columnEmissivity.MaxValue = 1f; columnEmissivity.Nullable = Infragistics.Win.UltraWinGrid.Nullable.Disallow; columnEmissivity.CellClickAction = CellClickAction.EditAndSelectText;
Using the arrow keys up and down works, until I reach the maximum of 1.00
Then both spinner buttons get deactivated and I'm not able to decrease 1.00 anymore except changing the value with keyboard.
Is there also a workaround for this?
Best regards,
Works like a charm, thank you.