Jump to content

TUniSpinEdit component validation


eduardosuruagy

Recommended Posts

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!!

Sem título.png

Link to comment
Share on other sites

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...
            }
        }
    }
}

 

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...