Pass ui parameter to the callback function which may be anonymous or a named function.
function taxnumberIsValid( ui ){
var country = ui.rowData["country"],
value = ui.value; //value is taxno as entered in the editor
//do the validation and if it fails assign message to ui.msg and return false
if( validation fails ){
ui.msg = "some message";
return false;
}
}
{ title: "Country", dataIndx: "country" },
{ title: "tax number", dataIndx: "taxno",
validations: [ { type: taxnumberIsValid }]
}
Reference:
http://paramquery.com/pro/api#option-column-validationsExample:
http://paramquery.com/pro/demos/editing_custom Books column