C1Window properties in C1Dialog 2025v2 399

Posted by: enrique.pv-ext on 9 January 2026, 6:05 am EST

    • Post Options:
    • Link

    Posted 9 January 2026, 6:05 am EST

    Hi,

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

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

    Now, this not compiles:

    C1WindowAdd.ShowModalWindowOnLoad = true;
    C1WindowAdd.StartPosition = C1.Web.UI.Controls.C1Window.C1WindowPosition.Page;
    C1WindowAdd.HorizontalAlign = C1.Web.UI.Controls.C1Window.HorizontalPosition.Center;
    C1WindowAdd.VerticalAlign = C1.Web.UI.Controls.C1Window.VerticalPosition.Middle;

    I use

    C1WindowAdd.ShowOnLoad = true;

    Which is the alternative now, for C1Dialog 2025v2 399 for

    StartPosition , HorizontalAlign , VerticalAlign ?

    thanks a lot in advanced, regards

  • Posted 12 January 2026, 9:23 am EST

    Hi,

    Thank you for sharing all the details.

    You can use the Position property of the C1Dialog to replace the StartPosition, HorizontalAlign, and VerticalAlign properties. Please see the documentation below for reference.

    Position Property (C1Dialog)

    Best Regards,

    Kartik

  • Posted 15 January 2026, 7:15 am EST

    	//     Center of the page.
    	C1WindowPosition: Page = 1,
    	//     Middle region
    	VerticalPosition: Middle = 1,
    	//     Center rgion
    	HorizontalPosition: Center = 1,
    
    C1WindowAdd.ShowModalWindowOnLoad = true;
    C1WindowAdd.StartPosition = C1.Web.UI.Controls.C1Window.C1WindowPosition.Page;
    C1WindowAdd.HorizontalAlign = C1.Web.UI.Controls.C1Window.HorizontalPosition.Center;
    C1WindowAdd.VerticalAlign = C1.Web.UI.Controls.C1Window.VerticalPosition.Middle;
    C1WindowAdd.Text = (string)_textsShown[14];

    I dont know if this will be the new code??

    C1WindowAdd.ShowOnLoad = true;
    C1WindowAdd.Title = (string)_textsShown[14];
    // TODO
    // C1WindowAdd.Position = "center";
    // or
    // C1WindowAdd.Position = "[\"center\",\"center\"]"; ?????????????????????
    

    Please, any help ? thx a lot!!

  • Posted 15 January 2026, 9:46 am EST

    Hi,

    Based on your previous code, it appears that C1Window was aligned at the center of the page. To achieve the same behavior with C1Dialog, you can simply set its Position property to center.

    C1Dialog1.Position = "center";

    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