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 ?
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
Thank you , sematik , again ! . 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 …