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

Need functionality

2 Answers 66 Views
Window
This is a migrated thread and some comments may be shown as answers.
Bichitra
Top achievements
Rank 1
Bichitra asked on 23 Jan 2009, 03:08 AM
Hi,

When I close the RadWindow using window control(cross button) It hides not closing. and Is there any way to cancle closing the Window.? If not would you like to provide this functionality,please?
This is important functionality. because if some body changed data before closing the window  we should popup message  for close and cancel the window.

I am waiting for reply ..

Thanks
Bichitra

2 Answers, 1 is accepted

Sort by
0
Boyan
Telerik team
answered on 23 Jan 2009, 03:52 PM
Hello Bichitra,

You can use the CloseMode property. If you set CloseMode="Close", the "x"  button will close your window. If this property is set to "Hide", the window will be only hidden.

About the second question - you should handle the PreviewClosed event. It is fired before the Close event.

Hope this will work for you. If you have any problems with that, please feel free to ask.

Sincerely yours,
Boyan
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Hristo Borisov
Telerik team
answered on 24 Jan 2009, 11:35 AM
Hello Bichitra,

Just to clarify that in handling the PreviewClosed and PreviewHidden you should set the property Cancel to True which is part of the event arguments parameter that will consequently prevent the control from closing or hiding. Tell us whether this functionality suits your needs and whether we can provide you with a better and more initiative approach.

All the best,
Hristo Borisov
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Window
Asked by
Bichitra
Top achievements
Rank 1
Answers by
Boyan
Telerik team
Hristo Borisov
Telerik team
Share this question
or