Open/show and close/hide methods C1Window to C1Dialog 2025v2 399

Posted by: enrique.pv-ext on 14 January 2026, 11:07 am EST

    • Post Options:
    • Link

    Posted 14 January 2026, 11:07 am EST

    Hi,

    Migrate from 2010v1 to 2025v2 399 in ASP.NET WebForms NET Framework 4.8.1.

    Migrating C1Window to C1Dialog 2025v2 399.

    Using C1Dialog from C1.Web.Wijmo.Controls.48.dll

    I have the code javasciprt:

    	var dialog = $("#" + C1WindowClientID);
    	dialog.c1dialog({
    		title: TitleText,
    		modal: true
    	});
    	dialog.c1dialog("open");

    I use open and close, now in C1Dialog 2025v2 399.

    Which is the alternative now, for C1Dialog 2025v2 399

    Differences using open or show ?

    Differences using close or hide ?

    		dialog.show()
    		dialog.hide()

    Thanks a lot

  • Posted 15 January 2026, 6:15 am EST

    Hello Enrique,

    show() / hide() only affect the DOM, not the dialog. They do not initialise the dialog, change its internal state or trigger the events.

    To open/show the dialog, use:

    function openDialog() {
        let dlg = $("#<%= C1Dialog1.ClientID %>");
        dlg.c1dialog("open");
    }

    To close/hide the dialog, use:

    function closeDialog() {
        let dlg = $("#<%= C1Dialog1.ClientID %>");
        dlg.c1dialog("close");
    }

    Please refer to the attached sample for implementation. (see Dialog_Sample.zip)

    Regards,

    Uttkarsh.

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels