C1DockGroup returns same items count after closing all C1DockTabControls

Posted by: vinothkumar.r2210 on 5 October 2020, 10:56 pm EST

  • Posted 5 October 2020, 10:56 pm EST

    I have added 4 C1DockTabControls inside C1DockGroup control. Once added I closed all C1DockTabControls which are available in C1DockGroup using CloseButton. Then I checked Items count of C1DockGroup control still it returned 4 items. How can I identify the closed items before adding new C1DockTabControl in C1DockGroup control. Please do the needful.

    Thanks and Regards,
    Vinoth Kumar R
  • Marked as Answer

    Replied 6 October 2020, 9:48 pm EST

    Hi Vinoth,

    This is by-design as clicking the Close button just hides the C1DockTabControl and does not remove it from the its Parent collection. If you want to identify these against the new C1DockTabControl then you can check their Parent property which would return null/nothing for the new C1DockTabControl but not for the closed C1DockTabControls.

Need extra support?

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

Learn More

Forum Channels