Get_visible, move, set_allowMove to C1Dialog 2025v2 399

Posted by: enrique.pv-ext on 10 June 2026, 4:59 am EST

    • Post Options:
    • Link

    Posted 10 June 2026, 4:59 am EST

    Hi,

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

    Migrate C1Window to C1Dialog.

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

    using javascript legacy code using get_visible, set_allowMove:

      if (controls.TripMediaViewerWindow.get_visible()) {
          controls.TripMediaViewerWindow.set_height(600);
          controls.TripMediaViewerWindow.set_width(700);
          //controls.TripMediaViewerWindow.set_x(0);
          //controls.TripMediaViewerWindow.set_y(30);
          controls.TripMediaViewerWindow.set_allowMove(true);
      }

    and more legacy code using move, set_allowMove:

    controls.TripMediaViewerWindow.set_height(height);
    controls.TripMediaViewerWindow.set_width(width);
    controls.TripMediaViewerWindow.move(positionX, positionY);
    controls.TripMediaViewerWindow.set_allowMove(allowMove);

    I use:

    set_height: c1dialog({ height: height });

    .c1dialog({ position: ‘center’ });

    .c1dialog(“option”, “position”, newValue);

    any suggestions for get_visible, set_allowMove, move ?

  • Posted 11 June 2026, 1:07 am EST

    Hello Enrique,

    We have implemented your legacy functionality using the new C1Dialog. Please refer to the attached sample for reference.

    Sampe: C1Dialog_Sample.zip

    Please refer to the following documentation we used to find alternatives for your legacy code: https://help.grapecity.com/wijmo/3/webframe.html#Wijmo~jQuery.fn.-~wijdialog.html

    Please let us know if you encounter any issues or have any further questions.

    Regards,

    Uttkarsh.

  • Posted 11 June 2026, 2:45 am EST

    really good ! thanks.

    Only questions about toggleAllowMove,

    how to get “isAllowMove” true or false ?

    c1dialog(‘pin’) changes the state of AllowMove, but how to get the value ??

    I try, but dont work for me.

    c1dialog(“option”, “draggable”) get always true.

            function toggleAllowMove() {
                var state = $("#<%=C1Dialog1.ClientID%>").c1dialog("getState");
                console.log(state);
    
    	var returnsValue = $("#<%=C1Dialog1.ClientID%>").c1dialog("option", "draggable");
    	console.log(returnsValue);
    
    	    returnsValue = $("#<%=C1Dialog1.ClientID%>").c1dialog("option", "captionButtons");
                console.log(returnsValue);
    
                $("#<%=C1Dialog1.ClientID%>").c1dialog('pin');
    
    	   returnsValue = $("#<%=C1Dialog1.ClientID%>").c1dialog("option", "draggable");
                console.log(returnsValue);
    
    	returnsValue = $("#<%=C1Dialog1.ClientID%>").c1dialog("option", "captionButtons");
    	console.log(returnsValue);
    
    	returnsValue = $("#<%=C1Dialog1.ClientID%>").c1dialog("widget");
                console.log(returnsValue);
    
    	state = $("#<%=C1Dialog1.ClientID%>").c1dialog("getState");
    	console.log(state);
           }

    any suggestions, please ??

  • Posted 11 June 2026, 3:34 am EST

    Hello Enrique,

    We’re sorry but we also did not find a way to get “pin” state of the C1Dialog.

    If you only want to toggle moving of the Dialog, please consider using “draggable” option instead as follows:

    function toggleAllowMove() {
        //$("#<%=C1Dialog1.ClientID%>").c1dialog('pin');
        let draggable = $("#<%=C1Dialog1.ClientID%>").c1dialog('option', 'draggable');
        $("#<%=C1Dialog1.ClientID%>").c1dialog('option', 'draggable', !draggable);
    }
    
    function getAllowMove() {
        let draggable = $("#<%=C1Dialog1.ClientID%>").c1dialog('option', 'draggable');
    
        alert(`isDraggable: ${draggable}`);
    }

    If you also want to use the “pin” functionality, please use the “draggable” option and the “pin” method together. When using them in conjunction, ensure that neither is configured without the other.

    function togglePinAllowMove() {
        let draggable = $("#<%=C1Dialog1.ClientID%>").c1dialog('option', 'draggable');
        $("#<%=C1Dialog1.ClientID%>").c1dialog('option', 'draggable', !draggable);
        $("#<%=C1Dialog1.ClientID%>").c1dialog('pin');
    }

    Regards,

    Uttkarsh.

Need extra support?

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

Learn More

Forum Channels