Hi, me again, I need to do the same like its exposed on the forum:
some similar
but I have different mistakes, this is the scenario:
and when i close this its the message error: arg.set_cancel is not a function,
I read on the forum something like if its no the right method this error shows but, 'add_beforeClose' dont work to me yet.
there another way to call this event?
I'm a litle confused.
Thanks in advance.
Nenita.*
some similar
but I have different mistakes, this is the scenario:
function onBeforeClose(sender, arg) |
{ |
function callbackFunction(arg) |
{ |
if (arg) |
{ |
sender.remove_beforeClose(onBeforeClose); |
sender.close(); |
} |
} |
arg.set_cancel(true); |
radconfirm("Are you sure", callbackFunction, 300, 100, null, "Close RadWindow"); |
} |
//this function call a window when I click a menu item |
function menuClick(sender,arg) |
{ |
//show window .... |
//.... |
//this comment lines not work, I try both |
//wnd.add_beforeClose(onBeforeClose); |
//sender.add_beforeClose(onBeforeClose); |
//but this work. its a closing event not before close |
wnd.add_close(onBeforeClose); |
} |
and when i close this its the message error: arg.set_cancel is not a function,
I read on the forum something like if its no the right method this error shows but, 'add_beforeClose' dont work to me yet.
there another way to call this event?
I'm a litle confused.
Thanks in advance.
Nenita.*