A  jQueryUI dialog is a floating window that contains a title bar and a content area. The dialog window can be moved, resized and closed with the 'x' icon by default.

/// <summary>
/// Default Functionality
/// </summary>
public static void Dialog()
{
    jQueryUI.Select("#dialog").Dialog();
}

It's also possible to use options:

/// <summary>
/// Animated Dialog
/// </summary>
public static void Animated()
{
    Dictionary dialogOptions = new Dictionary("autoOpen", false, "show", "blind", "hide", "explode");
    jQueryUI.Select("#dialog").Dialog(dialogOptions);

    jQuery.Select("#opener").Click(delegate(jQueryEvent e)
    {
	jQueryUI.Select("#dialog").Dialog("open");
    });
}

Last edited Sep 12, 2010 at 9:30 PM by brunofig, version 2

Comments

No comments yet.