Get_visible properties C1Window to C1Dialog 2025v2 399

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

    • Post Options:
    • Link

    Posted 14 January 2026, 11:04 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

    Older code javasciprt:

            var dialog = $find(clientId);
    	return dialog.get_visible();

    By example, get_visible not exists now in C1Dialog 2025v2 399.

    Now, how-to get if c1dialog is visible ?

    		var dialog = $("#" + clientId);

    Which is the alternative now, for C1Dialog 2025v2 399

    Thanks a lot

  • Posted 15 January 2026, 6:01 am EST

    Hello Enrique,

    The most reliable way to determine whether the dialog is visible is to use a flag that is set to true in the OnClientOpen event and reset to false in the OnClientClose event, as shown below:

    <script>
        let isDialogVisible = false;
    
        function OnClientShown(args) {
            console.log("Dialog Displayed");
            isDialogVisible = true;
        }
        function OnClientHide(args) {
            isDialogVisible = false;
        }
        function isVisible() {
            alert(isDialogVisible ? "Dialog is Visible!" : "Dialog is not Visible!!");
        }
    </script>
    <wijmo:C1Dialog ID="C1Dialog1" runat="server" Position="[120,280]" OnClientOpen="OnClientShown" OnClientClose="OnClientHide" Resizable="false" Draggable="false" ></wijmo:C1Dialog>
    <button type="button" onclick="isVisible(); return false;">Is Dialog Visible</button>

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

    Regards,

    Uttkarsh.

  • Posted 15 January 2026, 6:15 am EST

    does you recommended use isOpen ?

    var dialog = $("#" + clientId);
    return  dialog.c1dialog("isOpen");

    https://help.grapecity.com/wijmo/3/webframe.html#?_gl=1*1ierprd*_gcl_au*MTYyMzAwMDYxMS4xNzY1MzY3MzMyLjEzMDc4ODU0MTYuMTc2NTM3NDkzMC4xNzY1Mzc0OTMw

    Javascript (Usage)Javascript (Specification)

    $(function () {
        var returnsValue; // Type:  any
        returnsValue = $(".selector").wijdialog("isOpen");
    });

  • Posted 16 January 2026, 6:45 am EST

    Hello Enrique,

    Thank you for pointing that out, and apologies for the earlier oversight.

    Yes, you can indeed use the isOpen method to determine whether the C1Dialog is currently visible (open). This is the recommended and straightforward approach.

    For example:

    var isVisible = $('#<%= C1Dialog1.ClientID %>').c1dialog("isOpen");

    This will return true if the dialog is open and false otherwise.

    The event-based flag approach I mentioned earlier is still valid for scenarios where you need to track state changes or trigger additional logic on open/close, but for a simple visibility check, isOpen is perfectly appropriate.

    Please let us know if you have any further questions or run into any other issues during the migration.

    Regards,

    Uttkarsh

Need extra support?

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

Learn More

Forum Channels