Type value for width - height javascript methods C1Window to C1Dialog 2025v2 39

Posted by: enrique.pv-ext on 15 January 2026, 4:29 am EST

    • Post Options:
    • Link

    Posted 15 January 2026, 4:29 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 older code javasciprt:

    var dialog = $find(C1WindowClientID);
    
    dialog.set_width(width);
    dialog.set_height(height);

    In help reference wijmo, width using Number, and height using String ???

            var newValue; // Type:  number
            $(".selector").wijdialog("option", "width", newValue);
            var newValue; // Type:  string
            $(".selector").wijdialog("option", "height", newValue);

    I have now the code javasciprt:

            w.c1dialog({
                title: title,
                modal: true
            });
    
            if (width) {
                w.c1dialog("option", "width", width);
            }
            if (height) {
                w.c1dialog("option", "height", height);
            }
            w.c1dialog("open");

    Which is the alternative now, for C1Dialog 2025v2 399

    how-to use c1dialog for set width value, using // Type: number ?

    how-to use c1dialog for set height value, using // Type: string ?

    		$(".selector").wijdialog("option", "width", newValue);
    	    $(".selector").wijdialog("option", "height", newValue);

    Can you please, why type number vs type string for width and height ?

    Thanks a lot

  • Posted 16 January 2026, 3:32 am EST

    Hello Enrique,

    → In help reference wijmo, width using Number, and height using String ???

    It seems to be an error in documentation. Both width and height options take a string value. Please refer to the following code:

    function openDialog() {
        let width = '200px', height = '400px';
        let w = $('#<%= C1Dialog1.ClientID %>');
    
        w.c1dialog({
            title: 'title',
            modal: true
        });
    
        if (width) {
            w.c1dialog("option", "width", width);
        }
        if (height) {
            w.c1dialog("option", "height", height);
        }
        w.c1dialog({ position: 'right' });
        w.c1dialog("open");
    }

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

    Regards,

    Uttkarsh.

  • Posted 20 January 2026, 4:37 am EST

     let width = '200px', height = '400px';

    Is valid without px ?

     let width = '200', height = '400';

    thanks a lot

  • Posted 21 January 2026, 2:09 am EST

    Hello Enrique,

    Yes, it is valid without px as well.

    While testing, we noticed, if we set height with px, the dialog’s height is not changed. It is set to auto.

    We have shared this observation with the development team for further insights. [Internal Tracking ID: C1WEB-30295]

    We’ll update you once we have more information on the behavior.

    Regards,

    Uttkarsh.

  • Posted 21 January 2026, 3:35 am EST

    I’ll wait new updates with the behavior corrected. Now, I use without px. Thx.

Need extra support?

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

Learn More

Forum Channels