OnClientHidden C1Windows 2010v1 to C1Dialog 2025v2 399

Posted by: enrique.pv-ext on 8 January 2026, 6:58 am EST

    • Post Options:
    • Link

    Posted 8 January 2026, 6:58 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:

    EditConfigurationParamWindow.OnClientHidden = "EditDetractionWindowClosing";

    Which is the alternative now, for C1Dialog 2025v2 399

    I use OnClientClose, or maybe use better OnClientBeforeClose

    	protected override void OnInit(EventArgs e)
    	{
    		base.OnInit(e);
    
    		//this.WarningsWindow1.GetAcceptButtom().OnClientClick = "CloseWarningsWindow('" + WarningsWindow1.JavascriptClientID + "');return false;";
    		this.WarningsWindow1.GetAcceptButtom().Attributes.Add("onclick", "CloseWarningsWindow('" + this.WarningsWindow1.JavascriptClientID + "');return false;");
    		btnCancelEdit.OnClientClick = "CloseEditParamWindow('" + EditConfigurationParamWindow.ClientID + "'); return false;";
    		// NEW
    		//EditConfigurationParamWindow.OnClientHidden = "EditDetractionWindowClosing"; // not compiles!!!
    		EditConfigurationParamWindow.OnClientClose = "EditDetractionWindowClosing";
    	}

    thanks, regards

  • Posted 9 January 2026, 10:05 am EST

    Hi,

    We are looking into this case and will get back to you as soon as possible.

    Best Regards,

    Kartik

  • Posted 12 January 2026, 4:21 am EST

    Hi,

    Thank you for sharing the details. We could see that the OnClientHidden property of C1Window is not available in the C1Dialog. Since you are upgrading from a very old version, there are multiple changes that have been made over the years, and the OnClientHidden seems to have been removed. Instead, you can use the OnClientBeforeClose property of the C1Dialog.

    Please see the attached sample project, which shows this event being fired when the dialog is closed using the close-caption-button or programmatically using the dialog’s client-side close API.

    If you have any other requirement or are facing an issue with this implementation, please update this sample project to reproduce the issue, and share further details, so we can assist you better.

    C1UpgradeIssuesProject.zip

    Best Regards,

    Kartik

  • Posted 15 January 2026, 6:51 am EST

    Thanks!

    Finally, I use OnClientClose

    I try OnClientBeforeClose and my code javascript fail (call stack by infinite loop calling functions, I think)

Need extra support?

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

Learn More

Forum Channels