Rank: Member Groups: Member
Joined: 9/1/2010 Posts: 28
|
I would like to run a Javascript function as soon as when the dialog displays. The dialog displays content from another page using the ContentUrl property.
I tried ClientSideOnInitDialog and ClientSideOnLoad but they fire before the dialog displays.
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi,
ClientSideOnInitDialog is the correct one. It is fired right before the dialog is displayed so that you can initialize the dialog properly because anything is shown to the user. If that is a problem for you, you can use setTimeout to setup a timer to execute your code. That way by the time the timer is triggered, the dialog is already displayed.
Thanks!
|
Rank: Member Groups: Member
Joined: 9/1/2010 Posts: 28
|
That worked. Thanks.
|