Welcome Guest Search | Active Topics | Sign In | Register

Dialog hide on enter stroke Options
dllhell
Posted: Sunday, January 18, 2009 8:20:28 AM
Rank: Member
Groups: Member

Joined: 2/21/2008
Posts: 25
Hi,

I have a dialog with hidden cancel button and cancel button is undefined.
When enter is pressed, dialog turn to hidden and after postback he turn to visible again.
How to prevent this behavior (I don't want any reaction on enter pressed)?
eo_support
Posted: Sunday, January 18, 2009 8:56:20 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
dllhell
Posted: Sunday, January 18, 2009 9:25:41 AM
Rank: Member
Groups: Member

Joined: 2/21/2008
Posts: 25
Probably yes...
Does it changes anything because I'm showing my dialog on postback (serverside) as you can se in row below:
MyDialog.InitialState = EO.Web.DialogState.Visible

There is many dialogs and its quite lot of code to write in javascript to prevent hide on enter pressed.
According this solution, I need to write javascript function on for every dialog I have in project and asociate with it.
Is there any more elegant way? No any property changes or something?
eo_support
Posted: Sunday, January 18, 2009 11:07:01 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
To the dialog control, The JavaScript code is a property change. The solution requires you to put the JavaScript function in your page (usually can be done through master page or common shared js files) and associate the function the dialog by setting the dialog's ClientSideOnAccept to the name of the function.

This has nothing to do with whatever other code you have on the server side.

Hope this helps.
dllhell
Posted: Sunday, January 18, 2009 12:00:19 PM
Rank: Member
Groups: Member

Joined: 2/21/2008
Posts: 25
Thanks.


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.