Hi ,
I have a radgrid with paging enabled on OnCommand of client event i need to display a javascript confirm message box.
The javascript OnCommand method is as follows
If command name is Page based on the javascript metho
It works as in the data is not displayed of the next page. However the slider moves .
Meaning the slider moves irrespective of whether i set to cancel or not in my case i want the slider to move only is the Method "UnSavedChanges" returns false.
Regards,
Francis P.
I have a radgrid with paging enabled on OnCommand of client event i need to display a javascript confirm message box.
The javascript OnCommand method is as follows
function RaiseCommand(sender, args) {
var result = args.get_commandName();
if (result == 'Page') {
if(UnSavedChanges())
{
args.set_cancel(true);
}
}
}
d
"unSavedChanges" that is if true i set cancel to true.It works as in the data is not displayed of the next page. However the slider moves .
Meaning the slider moves irrespective of whether i set to cancel or not in my case i want the slider to move only is the Method "UnSavedChanges" returns false.
Regards,
Francis P.