in the drag-and-drop Grid demo (http://demos.telerik.com/aspnet-ajax/grid/examples/programming/draganddrop/defaultcs.aspx) when dragging items to the Recyle Bin, it gives a regular confirm box. How would I replace this with a radconfirm box?
I've got it so far as that it shows the radWindow through the radconfirm call, but it doesn't give me a chance to say yes/no, and instead continues execution of removing the dragged items. how do I 'pause' the execution properly?
here's the code snippet from the demo that uses the regular confirm
and here's my similar code, but trying to use the radconfirm. I must be missing something?
Thanks for the help.
I've got it so far as that it shows the radWindow through the radconfirm call, but it doesn't give me a chance to say yes/no, and instead continues execution of removing the dragged items. how do I 'pause' the execution properly?
here's the code snippet from the demo that uses the regular confirm
var
node = args.get_destinationHtmlElement();
if
(!isChildOf(
'trashCan'
, node))
{
args.set_cancel(
true
);
}
else
{
if
(confirm(
"Are you sure you want to delete this order?"
))
args.set_destinationHtmlElement($get(
'trashCan'
));
else
args.set_cancel(
true
);
}
and here's my similar code, but trying to use the radconfirm. I must be missing something?
var
node = args.get_destinationHtmlElement();
if
(!isChildOf(
'trashCan'
, node))
{
args.set_cancel(
true
);
}
else
{
var
callBackFn =
function
(arg) {
if
(arg) {
args.set_destinationHtmlElement($get(
'trashCan'
));
}
}
radconfirm(
"Are you sure you want to remove this user from the role?"
,callBackFn);
return
false
;
// if (radconfirm("Are you sure you want to remove this user from the role?",callBackFn))
// args.set_destinationHtmlElement($get('trashCan'));
// else
// args.set_cancel(true);
}
Thanks for the help.