Jump to content

Add NonEmpty property to UniDBEdit and UniEdit


albertovesx

Recommended Posts

Semper share this:

If you want TUniEdit that requires a non-empty value:


Open UniEdit's ClientEvents and edit ExtEvents property
Add the following line in the "OnBeforerender" event:

sender.allowBlank=false;

 

But, it would be useful to have this as property and change this value on runtime.

 

As optional display a message sender.emptyText='text to display when the field is empty';

 

Best regards

Link to comment
Share on other sites

×
×
  • Create New...