help me solving this.
i have to close the radalert and radconfirm boxes by pressing Esc key.
the normal radwindow i can able to close by calling close() method.
but does radalert and confirmbox have that close method.
can u tell me the way to do this.
1 Answer, 1 is accepted
answered on 18 Sep 2008, 04:15 PM
Yes, the radalert and radconfirm dialogs have the close() method as the standard RadWindow. In order to call this method you should obtain a reference to the dialog in this manner: var alertMsg = radalert('test'); After you have done this, you can call the close method of the alertMsg object.
I am not quite sure about your exact scenario and that is why I prepared for you a simple script which closes the alert after some timeout, justo to demonstrate how this should be done:
var alertMsg = radalert('test');
Feel free to modify the script further in order to meet your particular needs.
the Telerik team
Check out Telerik Trainer, the state of the art learning tool for Telerik products.