C1Window functions migrating to C1Dialog 2025v2 399 in NET Framework 4.8.1

Posted by: enrique.pv-ext on 30 December 2025, 11:48 am EST

    • Post Options:
    • Link

    Posted 30 December 2025, 11:48 am EST

    Hi,

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

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

    Changes C1Window to C1Dialog control.

    Not working this code (set_x, set_y, set_text… ) with C1Dialog, any alternatives ?

    In my legacy code using C1Window 2012v1, I use C1Window functions:

           var show = function (args) {
            var w = controls.C1Window1;
            //w.set_showModalWindowOnLoad(false);
            
            if (title != '') { w.set_text(title); }
            
            if (width) {
                w.set_width(width);
            }
    
            if (height) {
                w.set_height(height);
            }
            
            w.set_startPosition(1);
            w.set_verticalAlign(1);
            w.set_horizontalAlign(1);
            w.showModal();
            controls.btnAccept.focus();
        };
    	
    	
    	
     dialog.showModal();
    
       dialog.set_x(200);
       dialog.set_y(250);
    
      dialog.get_visible();
    
     dialog.set_text(title);
     dialog.set_startPosition(C1.Web.UI.Controls.C1Window.C1WindowPosition.page);
     dialog.set_verticalAlign(C1.Web.UI.Controls.C1Window.VerticalPosition.middle);
     dialog.set_horizontalAlign(C1.Web.UI.Controls.C1Window.HorizontalPosition.center);
     
    dialog.hide();
    

    which are the new functions ?

    set_showModalWindowOnLoad
    set_text
    set_width
    set_height
    set_startPosition
    set_verticalAlign
    set_horizontalAlign
    showModal
    

    ShowModalWindowOnLoad not exists in C1Dialog:

    Can you help me about those functions, please? Thanks in advanced

  • Posted 31 December 2025, 2:46 am EST

    Hi,

    We are already in discussion with our developers regarding this requirement. [Internal Tracking Link: C1WEB-30276]

    We will update you on this as soon as we get any information from their end.

    Thanks & regards,

    Aastha

  • Posted 13 January 2026, 11:25 am EST - Updated 14 January 2026, 4:32 am EST

    I need the alternative new functions for old functions? :

    set_showModalWindowOnLoad

    set_text

    set_width

    set_height

    set_startPosition

    set_verticalAlign

    set_horizontalAlign

    showModal

    hide

    set_x

    set_y

    get_visible

    C1.Web.UI.Controls.C1Window.C1WindowPosition.page

    C1.Web.UI.Controls.C1Window.VerticalPosition.middle

    C1.Web.UI.Controls.C1Window.HorizontalPosition.center

    How-to use c1dialog with position for startPosition, verticalAlign, horizontalAlign ?

       // Set value
        var newValue; // Type:  any
        $(".selector").wijdialog("option", "position", newValue);
  • Posted 15 January 2026, 11:58 am EST

    Hi,

    We are in discussion with the development team regarding these functions and will provide you the update as soon as we get them from the development team.

    Thank you for your patience.

    Best Regards,

    Kartik

  • Posted 16 January 2026, 3:19 am EST

    I try

    var dialog = $("#" + C1WindowClientID);
    dialog.c1dialog({
    				title: TitleText,
    				modal: true
    });
    dialog.c1dialog({ position: '[200,250]' });
    dialog.c1dialog("open");
    			var dialog = $("#" + clientId);
    			return  dialog.c1dialog("isOpen");

    Align middle + center from VPos + HPos

    dialog.c1dialog({ position: 'center' });

    whats about

       $(".selector").wijdialog("option", "position", newValue);
  • Posted 16 January 2026, 6:13 am EST

    Hi,

    Both of the code snippets below are correct, and either one can be used.

    dialog.c1dialog({ position: 'center' });
    $(".selector").wijdialog("option", "position", newValue);

    Regarding the “set_*” JavaScript methods you mentioned above, these are no longer available in the C1Dialog. Therefore, you will need to use either of the above code snippets to set these properties as well.

    Best Regards,

    Kartik

  • Posted 20 January 2026, 4:41 am EST

    c1dialog is valid, in the samples code appears c1dialog

    wijdialog is valid too ??

    is the same ?

    dialog.c1dialog({ position: 'center' });
    dialog.wijdialog("option", "position",  'center');
  • Posted 20 January 2026, 7:36 am EST

    Hi,

    You can use any of the below

    dialog.c1dialog({ position: 'center' });
    $(".selector").c1dialog("option", "position", newValue);

    The wijdialog is just to showcase the syntax and cannot not be used directly in code

    Best Regards,

    Kartik

Need extra support?

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

Learn More

Forum Channels