Validation of row

Hi,
In grid are validations :
mygrid.enableValidation( true,true,… );
mygrid.setColValidators( “NotEmpty”, “MineOwnValifFunction”, … );
Grid related to DataProcess :
myDp = new dataProcessor( cQry );
myDp.enableDataNames( true );
myDp.init( mygrid );

Validations are working , leaves red lines . But I can leave the invalid row , though validations of cell(s) are not correct . myDp it save to server too . How to avoid that ? It will be very fine to hold cursor on a bad row until user will do correct row … Or not to leave editting cell .

How to myDp let not to save bad ( not validated ) lines ?

With best regards ! ( Suite Pro 3.5 version )

Dataprocessor has its own way to attach validation. Its validation check will run exactly before data sending to the server and block data sending if data was invalid.
Please, follow the link: docs.dhtmlx.com/doku.php?id=dhtm … validation

To catch the validation error you may use:
docs.dhtmlx.com/doku.php?id=dhtm … ationerror

Thank you , sematik , again ! :slight_smile: . I redid validation with dataProcessor setVerificator methods . Works fine .

 Maybe setVerificator can be extended as grid editing event ?

mygrid.attachEvent( “onEditCell”, function( stage, id, index, new_value, old_value )
In some case to see “old_value” will be very fine and to use only one method for vaidation …

With best regards !

Unfortunately this is not available.