I have a grid and I set up the clientsetting, client events as shown beow
function RowSelectingHandler(sender, eventArgs)
{
if (SCREEN_CHANGED)
{
if (! confirm("Are you sure you want to move to a differnt row?" +
"\n\n" +
"You will loose any unsaved changes!" + "\n\n" +
"Press OK to continue, or Cancel to stay on the current row."))
{
return false;
}
}
return true;
}
<
ClientEvents OnGridCreated="ScrollToRow" OnRowSelecting="RowSelectingHandler" />
Then in the java script function, I have as shown below. And if I return "false", the code kept on processing. I think it may be a bug. In any case, I would like to stop processing, and how can I do it? Thanks in advance...function RowSelectingHandler(sender, eventArgs)
{
if (SCREEN_CHANGED)
{
if (! confirm("Are you sure you want to move to a differnt row?" +
"\n\n" +
"You will loose any unsaved changes!" + "\n\n" +
"Press OK to continue, or Cancel to stay on the current row."))
{
return false;
}
}
return true;
}