eduardosuruagy Posted October 7, 2021 Share Posted October 7, 2021 I'm using a TUniSpinEdit and I'd like to block typing if the typed value is greater than that informed in the MaxValue property, the component lets me type a larger value and it turns red, and the user sometimes doesn't see it. I would like to block or show a message if this happens. Thanks!! Quote Link to comment Share on other sites More sharing options...
Sherzod Posted October 8, 2021 Share Posted October 8, 2021 10 hours ago, eduardosuruagy said: I'm using a TUniSpinEdit and I'd like to block typing if the typed value is greater than that informed in the MaxValue property, the component lets me type a larger value and it turns red, and the user sometimes doesn't see it. I would like to block or show a message if this happens. Thanks!! Hello, You can try this JS event: function beforeInit(sender, config) { config.listeners = { validitychange: function(sender, isValid) { if (isValid == false) { // custom logic... } } } } Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.