In Development
Last Updated: 14 Mar 2024 11:28 by ADMIN

Use the code snippet:

    Sub New()

        InitializeComponent()
        Me.RadSpinEditor1.EnableNullValueInput = True
        Me.RadSpinEditor1.NullableValue = Nothing

        Console.WriteLine("Value " & Me.RadSpinEditor1.Value & " END")
        Console.WriteLine("NullableValue " & Me.RadSpinEditor1.NullableValue & " END")
    End Sub

    Private Sub RadSpinEditor1_NullableValueChanged(sender As Object, e As EventArgs) Handles RadSpinEditor1.NullableValueChanged
        Console.WriteLine("NullableValueChanged " & Me.RadSpinEditor1.NullableValue & " END")
    End Sub

Follow the steps:

1. Run the project with the above code and enter 0 in the spin editor. Navigate to the next control. You will notice that the NullableValueChanged event doesn't get fired.

2. Focus the spin editor again and enter 5. Navigate to the next control. The NullableValueChanged event is fired as expected.

3. Focus again the spin editor, select the text and press Del. Navigate to the next control. The NullableValueChanged event is fired again as expected.

4. Focus again the spin editor and enter 0. Navigate to the next control. You will notice that the NullableValueChanged event is fired.

5. Focus again the spin editor, select the text and press Del. Navigate to the next control. The NullableValueChanged event is fired again as expected.

6. Focus again the spin editor and enter 0. Navigate to the next control. You will notice that the NullableValueChanged event is NOT fired in this case.

Unplanned
Last Updated: 11 Aug 2023 06:59 by ADMIN

Hi team,

We've noticed an issue with the built-in theme FluentDark where a RadSpinEditor that has no default value and utilises Null Text is incredibly hard to read due to the colouring of the NullText

For the moment we have a workaround where we overwrite the theming for Telerik.WinControls.UI.RadTextBoxItem on app startup for FluentDark, however this isn't ideal so we figured it might be best to raise this with your team.

Please let us know if you need any further information. Cheers!

Unplanned
Last Updated: 08 Jun 2021 11:32 by ADMIN
E.g. if the spin editor has a minimum value of -100 and you bind it to an object with it's property set to null  (so the editor will have an empty value), if you update the "DecimalPlaces" property, the editor will now show -100 but it's value is still null.
Unplanned
Last Updated: 08 Jun 2021 11:24 by ADMIN

After clearing the value of the editor, the ValueChanged/NullableValueChanged events do not fire when inputting the same value as before.