This is a migrated thread and some comments may be shown as answers.

How to check if it's confirm dialog or Rad window.

1 Answer 60 Views
Window
This is a migrated thread and some comments may be shown as answers.
Alex
Top achievements
Rank 1
Alex asked on 16 Dec 2010, 07:54 PM
I have a handler for "OnClientClose" event of RadWindowManager. When I finish the confirm dialog, this event hires. How can I figure out it was confirmDialog or RadWindow? Thanks in advance.

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 17 Dec 2010, 08:07 AM
Hello Alex,

You could check for the window name in the OnClientClose method of RadWindowManager to distinguish between window or confirm.

client code:
function OnClientClose(sender, args) {
    alert(sender.get_name()); // Check for the "sender.get_name()"
}


-Shinu.
Tags
Window
Asked by
Alex
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or