C1Editor empty after hide and show the form

Posted by: phartemann on 11 June 2024, 11:04 am EST

  • Posted 11 June 2024, 11:04 am EST

    Hi,

    I try to use the C1Editor as it : Create a form that contains a C1Editor

    Hide the form instead of close it

    Reopen the form by applying “ShowDialog”

    When I do that, The C1Editor is Empty, and can’t be updated nor manually, nor by the code.

    All other control on the form contains the needed data.

    Is there something wrong on my process ?

    Thank,

    regards,

    Patrick

  • Posted 12 June 2024, 2:34 am EST

    Hi Patrick,

    Thank you for sharing all the details. We could see the behavior you mentioned on our end. We have reported it to the development team for further investigation and will let you know the updates soon.

    [Internal Tracking ID: C1WIN-32357]

    Best Regards,

    Kartik

  • Posted 9 July 2024, 4:10 am EST

    Hi,

    Do you have new information on my issue ?

    Kind regards,

    Patrick

  • Posted 9 July 2024, 4:17 am EST

    Hi Patrick,

    According to the development team, the observed behavior appears to be a bug. We will keep you informed as soon as we receive any updates on this matter. In the meantime, the only workaround suggested by the developers is to create a new instance of the form each time it is shown, rather than hiding and showing the same instance.

    Thank you for your patience and understanding.

    Kind Regards,

    Kartik

  • Posted 13 February 2026, 3:31 pm EST

    I am encountering the same issues. Reinitializing the form is not an option. Is there another work around or has there been progress made in rectifying this issue?

  • Posted 16 February 2026, 7:46 am EST

    Hi Danny,

    At the time this issue was escalated, the development team investigated the behavior and reviewed the issue multiple times. Unfortunately, they confirmed that this issue is a limitation of the control due to certain internal constraints. At that time, the only workaround they were able to suggest was to reinitialize the form.

    That said, we are reaching out to the development team once more to check whether an alternative workaround may be possible without reinitializing the form. We will update you as soon as we receive further feedback from them.

    Best Regards,

    Kartik

  • Posted 17 February 2026, 1:51 pm EST

    Kartik,

    Thank you for the response. I came up with a few different solutions myself. The main issue that I had with recreating the form was the control itself takes a long time to initialize and the form would take a few seconds to popup. It had nothing to do with data loading it was purely form initialization of the C1Editor controls.

    The C1Editor rendering issue appears to occur when the .Visible property of the form is set to false and the form loses it’s handle. If you simply want to replace the control on the form at runtime it can be removed in the VisibleChanged event and then added back in the HandleCreated event.

    I found when doing this I had issues with the drawing of the control being visible when the form popped back up. It also moved the slowness of the form popping up to the closing of the form which was just as bad.

    To solve that issue I decided that I would create a C1Editor pool and that solved most problems but became more of a nuisance on forms with multiple C1Editors.

    The real solution came in creating a pool of the specific form that is replenished asynchronously on Application.Idle event.

    I would prefer to not have to pool forms just so a control will render correctly. But for now it’s working.

  • Posted 18 February 2026, 8:05 am EST

    Hi,

    Thank you for sharing the complete details of the issue you encountered and the solution you implemented. We’re glad to hear that you were able to resolve the problem on your end. The additional information you provided will certainly be helpful to other customers in case they are facing a similar situation.

    Thanks, and 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