Custmized validation messages.

I have specific requirement that on save of an event(server side), a particular condition needs to be met. otherwise he/she should be inform about it.

Is there any way by which I can show these custom messages in alert box?(Like you do it loadXML)

-Prashant

Assuming that you are using connectors ( example uses PHP, but applicable for other platforms as well )

[code]//server side
function beforeProcessing($action){
if ($action->get_value(“text”) == “”){ //some check
$action->set_response_attribute(“details”,“Non valid”);
$action->error();
}
}
$grid->event->attach(“beforeProcessing”,“mycheck”);

//client side
dp.defineAction(“error”,function(tag){
alert(tag.getAttribute(“mycheck”))
return true;
});
[/code]

Can I have this example in java?

Check
docs.dhtmlx.com/doku.php?id=dhtm … foreupdate

It shows an example of java server side event handling. Names of methods are the same in Java and PHP connectors.