Frederick Posted February 2, 2021 Share Posted February 2, 2021 In the desktop demo for Grid - Row Editors, how do I prevent a user from using the keyboard and entering a blank value for the phone extension? Although the TUniSpinEdit control has minimum and maximum values set, these are not respected. -- Frederick (UniGUI Complete - Professional Edition 1.90.0.1543) preventblankinspinedit.mp4 Quote Link to comment Share on other sites More sharing options...
Sherzod Posted February 2, 2021 Share Posted February 2, 2021 Hello, 1 hour ago, Frederick said: how do I prevent a user from using the keyboard procedure TMainForm.UniFormCreate(Sender: TObject); begin UniSpinEdit1.JSInterface.JSConfig('editable', [False]); end; Quote Link to comment Share on other sites More sharing options...
Sherzod Posted February 2, 2021 Share Posted February 2, 2021 1 hour ago, Frederick said: how do I prevent a user from using the keyboard and entering a blank value for the phone extension? procedure TMainForm.UniFormCreate(Sender: TObject); begin //UniSpinEdit1.JSInterface.JSConfig('editable', [False]); UniSpinEdit1.JSInterface.JSConfig('allowBlank', [False]); end; Quote Link to comment Share on other sites More sharing options...
Frederick Posted February 2, 2021 Author Share Posted February 2, 2021 Thank you. 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.