Hi,
I have ajaxified RadGrid and in CommandItemTemplate I have RadToolBar with several buttons for my custom actions for data in the grid, which I handle in RadGridResults_ItemCommand(object sender, GridCommandEventArgs e).
In that function firstly I perform some validations before I continue working with those data. But I think some of those validations can be done by javascript on client side but I don't know how to do that. Could you advice me how to implement when user clicks on RadToolBarButton firstly some javascript function will be called where some conditions will be evaluated and if everything will be correct, it will be sent to server where RadGridResults_ItemCommand function will handle them.
Thanks for any help,
Peter
I have ajaxified RadGrid and in CommandItemTemplate I have RadToolBar with several buttons for my custom actions for data in the grid, which I handle in RadGridResults_ItemCommand(object sender, GridCommandEventArgs e).
In that function firstly I perform some validations before I continue working with those data. But I think some of those validations can be done by javascript on client side but I don't know how to do that. Could you advice me how to implement when user clicks on RadToolBarButton firstly some javascript function will be called where some conditions will be evaluated and if everything will be correct, it will be sent to server where RadGridResults_ItemCommand function will handle them.
Thanks for any help,
Peter