Current filter:
                                You should refresh the page.
                                  • Hi,

                                    i have a SpinEdit with Min and Max values (Figure 1 and 2). How can I turn off the Export button if I click the Delete button in SpinEdit (Figure 3) or enter a value outside of the Min and Max values? Clicking the Delete button does not trigger the ValueChanged.

                                    Thank you

                                1 Solution

                                Creation Date Importance Sort by

                                Hello Jörg,

                                When SpinEdit holds an invalid value, its HasValidationError property returns True. This is also the case for values that do not belong to the minimum and maximum values range. So, as long as the clear button assigns such a value to your editor, you can bind your button's IsEnabled property to HasValidationError and invert the result to disable it. Otherwise, you can handle the EditValueChanged event and provide your custom logic in its handler method. I tried this approach and see that this event fires as expected after the clear button is pressed. Here is a screencast demonstrating this behavior:

                                Let me know if you have any further questions.

                                • Jörg Krause 08.13.2019

                                  Hi Dima,

                                  thank you for your screencast! With moving the Min and Max values range to the EditValueChanged event it works!


                                • Dima (DevExpress Support) 08.14.2019

                                  You're welcome!