ComponentOne Window for ASP.NET AJAX: Working with Client-Side Script in Window for ASP.NET AJAX > Dialog Window Client-Side Methods

Dialog Window Client-Side Methods

Window for ASP.NET AJAX supports several client-side methods. The following table lists the object methods available from client-side script:

 

Client-Side Method

Description

Example

Activate(window)

Makes the dialog window active.

C1.Web.UI.Controls.C1Window.C1Window.activate(dialog)

Deactivate(window)

Deactivates the dialog window.

C1.Web.UI.Controls.C1Window.C1Window. deactivate (dialog)

Show()

Shows a dialog window.

dialog.show()

For an example of this method, see Calling the Show and Hide Methods at Run Time.

Hide()

Hides a dialog window. 

dialog.hide()

For an example of this method, see Calling the Show and Hide Methods at Run Time.

ShowModal()

Shows modal dialog window.

dialog.showModal()

For an example of this method, see Creating a Modal Dialog Window in Code.

SetHtml(html)

Loads HTML code passed as a string to dialog window content.

dialog.setHtml("html text");

SetUrl(url)

Loads passed URL to dialog window content.

dialog.setUrl("http://www.url.com")

For an example of this method, see, Setting the ContentURL Property at Run Time.

Move(x, y)

Moves a dialog window to specified location.

dialog.move(0, 0)

Normalize()

Restores dialog window size from maximized or minimized state.

dialog.normalize()

Minimize()

Minimizes a dialog window.

dialog.minimize()

Maximize()

Maximizes a dialog window.

dialog.maximize()

Reload()

Reloads dialog window content specified by ContentUrl.

dialog.reload()


Send comments about this topic to ComponentOne.
Copyright © ComponentOne LLC. All rights reserved.