Welcome Guest Search | Active Topics | Sign In | Register

Closing Dialog on postback Options
dllhell
Posted: Monday, August 4, 2008 3:37:24 AM
Rank: Member
Groups: Member

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

I have a three questions

1) I have a dialog with several buttons on it. They are system.web.ui.webcontrol.imagebutton.
When I click anyone of them (not defined as cancel button), button click provoke postback (which is wanted) and closing a dialog I still need for further operations (which isn't wanted). How to avoid this?

2) Is there a way how to open a dialog programmaticaly, not by assigning showbutton but use some method of dialog. Some time I don't know in the beginning of procedure would I show dialog or not...

3) I need to call from dialog1 another dialog - dialog2, but i can't assign dialog2.showbutton as dialog1.html_inputbutton, only as system.web.ui.webcontrol.imagebutton. But this button provoke postback, closes dialog1 and dialog2 is never showned. Yes, yes... its same as question1...
eo_support
Posted: Monday, August 4, 2008 6:46:14 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,193
Hi,

You can set Dialog.InitialState to Visible to display the dialog on the server side. That should solve #1.

You can call the Dialog's client side JavaScript interface to display the dialog on the client side. Almost all the sample code uses this method to display the dialog. You can take a look of those and also the JavaScript interface reference:

http://www.essentialobjects.com/ViewDoc.aspx?t=clientapi_howto.html

Thanks!
dllhell
Posted: Tuesday, August 5, 2008 2:22:51 AM
Rank: Member
Groups: Member

Joined: 2/21/2008
Posts: 25
Thanks for answ. I'll try it at monday.
#2 isn't possible?
eo_support
Posted: Tuesday, August 5, 2008 6:37:47 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,193
dllhell wrote:
#2 isn't possible?
Isn't this already answered? Both paragraphs of the previous reply is about how to open dialog programmatically.
dllhell
Posted: Tuesday, August 5, 2008 10:35:14 AM
Rank: Member
Groups: Member

Joined: 2/21/2008
Posts: 25
Its answared, sorry...
tnx again


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.