Hello,
I m using RadToolBar.. I want to do a client side validation in OnClientButtonClicked() function.
I m using RadToolBar.. I want to do a client side validation in OnClientButtonClicked() function.
function OnClientToolBarButtonClicked(sender, eventArgs)
{
var button = eventArgs.get_item();
if(button.get_text() == "Delete")
{
if(confirm("Are you sure you want to delete?"))
{
return true;
}
else
return false;
}
}
When the user presses ok then go ahead and delete otherwise return as we do in Javascript.
Thanks,
Bharani