Rank: Member Groups: Member
Joined: 6/10/2008 Posts: 12
|
Hi,
I need to rewarm the "Enter-as-accept-button" topic. I read a lot here, but is there any solution meanwhile? In case of my project, dialogs simply close when pressing Enter, with no further effect (no postback). The caret "freezes" (stays visible until next postback) in the middle of the screen, just where the focused input text box previously was. By the way, the dialog closes before the "onkeydown" handler of the focused textbox is called.
Can anyone please shed a light on this... I read in previous posts, I would have to handle keyboard events by myself, but where?
Thanks in advance! Karsten
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi,
By default closing the dialog does not cause a post back. There are two ways to perform additional action when a dialog closes:
1. Set AcceptButtonPostBack to true. This way the dialog posts back when the dialog closes;
2. Set the dialog's ClientSideOnAccept to a JavaScript function. This function will be called when the dialog close;
We are not aware of the caret problem, can you create a test page for us for that problem?
The dialog does close before the onkeydown handler is called. This is because the dialog handles event on the document, not on the dialog itself. We will see if that can be changed.
Thanks
|