Can someone whip up a block confirm sample for drag\drop please?
Like is there no way for you to elegantly do it like the RadButtons implimentation?
Does it need the bloated block confirm instead?...I mean I know it probably does, but can you make it easier like the above scenario (in the RadButtons case you call a click method if shouldSubmit.
Like is there no way for you to elegantly do it like the RadButtons implimentation?
function
confirmOnDragItem_Dropping(sender, args) {
var
callBackFunction = Function.createDelegate(sender,
function
(shouldSubmit) {
if
(shouldSubmit) {
//Allow it to happen
}
});
var
text =
"Are you sure you wish to move this item?"
;
radconfirm(text, callBackFunction, 300, 100,
null
,
"RadConfirm"
);
args.set_cancel(
true
);
}
Does it need the bloated block confirm instead?...I mean I know it probably does, but can you make it easier like the above scenario (in the RadButtons case you call a click method if shouldSubmit.