Welcome Guest Search | Active Topics | Sign In | Register

Using Dialog Options
Always Learning
Posted: Thursday, February 3, 2011 5:00:58 AM
Rank: Member
Groups: Member

Joined: 12/8/2009
Posts: 26
Hi There,
I would like to use eo:Dialog to capture some requirements prior to running a query and showing a grid with the results.

As a starting point I am trying to use the example that comes with EO called "Content and Footer Template" and these are my stummbling points.

I would like the dialog to show straight away without having to click the hyperlink for showing modal or not.
I need to be able to trap the button click prior to it closing the dialog so I can collect the choices made in the dialog.

Is that doable?

Thanks for any help you can give, I appreciate it.

Best Regards,

Steve.
eo_support
Posted: Thursday, February 3, 2011 11:36:19 AM
Rank: Administration
Groups: Administration

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

If you do not wish to use a link or button to display the dialog, you can set the dialog's InitialState to Visible to display the dialog.

The dialog automatically closes when the page posts back. So if you want to avoid dialog being closed, you need to avoid the page being posted back. That means you either have to handle your click event on the client side, or handle it on server side via AJAX.

Thanks!

Always Learning
Posted: Monday, February 7, 2011 5:32:45 AM
Rank: Member
Groups: Member

Joined: 12/8/2009
Posts: 26
Hi There,
Thanks for the reply.

Ok I can now get the dialog to show straight away by using the initialstate but how do I trap the dialog ok button.

If I turn on AcceptButtonPostback the form does postback but does not close. If I turn it off the form closes but I cannot get the choices made in the dialog form.

Any help with this would be really appreciated.

Best Regards,

Steve.
eo_support
Posted: Monday, February 7, 2011 7:23:11 AM
Rank: Administration
Groups: Administration

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

You would usually need to use AJAX for that kind of situation. This actually does not have anything to do with the dialog --- your goal is trigger server event without raising a full post back and that's exactly what AJAX does.

Thanks!
Always Learning
Posted: Monday, February 7, 2011 8:00:02 AM
Rank: Member
Groups: Member

Joined: 12/8/2009
Posts: 26
Hi There,

Thanks for the quick reply.

Do you have any example code?

Thanks,

Steve.
eo_support
Posted: Monday, February 7, 2011 8:08:29 AM
Rank: Administration
Groups: Administration

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

No. As we have already pointed out, that part does not have anything to do with us. You can Google online and you should be able to find out plenty of information about AJAX.

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.