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

Remove Close button from Title bar of radpromt window

4 Answers 271 Views
Window
This is a migrated thread and some comments may be shown as answers.
Shuchi Bhalla
Top achievements
Rank 1
Shuchi Bhalla asked on 11 Jul 2008, 10:14 PM
Hi All

I am using a radprompt window to prompt/force the user to reenter his password once it is detected that the user session has been inactive for a while.

To make sure that the user is unable to continue without reentering the password, the following two conditions need to be implemented:
1. The title bar of radprompt window should not have a close button.
2. The page refresh (F5) needs to be handled so that the radprompt window does not disappear after a forced refresh by the user.

I have created a promptTemplate class to make the input textbox to handle passwords (display '*' instead of actual letters.)

The radprompt, by default, has a close button on the title bar.

Can anyone shed some light on the above two points?

Rgds
Shuchi

4 Answers, 1 is accepted

Sort by
0
Georgi Tunev
Telerik team
answered on 14 Jul 2008, 12:26 PM
Hello Shuchi,

RadWindow's radconfirm cannot have its toolbar button removed, but you can open a new RadWindow with the Behaviors properties set as you need them and use it instead of radconfirm. As for handling the F5 button I suggest to hook to the page's onkeydown eventhandler and to check if the F5 button is pressed and cancel it when needed.





Greetings,
Georgi Tunev
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Shuchi Bhalla
Top achievements
Rank 1
answered on 16 Jul 2008, 06:02 PM
I am using RadWindow's radpromt...can the close button be removed from that?
Else, is there a way to handle the window close event and make it do nothing?

OnClose()
{
doNothing;
}
0
Accepted
Georgi Tunev
Telerik team
answered on 17 Jul 2008, 07:44 AM
Hi Shuchi,

Yes, there is a way to override the close functionality - you can check it here, however this will affect all RadWindows on the page. That is why I would suggest to use the same solution as the one offered for the radconfirm issue.
 


All the best,
Georgi Tunev
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Shuchi Bhalla
Top achievements
Rank 1
answered on 17 Jul 2008, 03:52 PM
Thanks Georgi, I appreciate the solutions and the quick response.

Rgds
Shuchi
Tags
Window
Asked by
Shuchi Bhalla
Top achievements
Rank 1
Answers by
Georgi Tunev
Telerik team
Shuchi Bhalla
Top achievements
Rank 1
Share this question
or