How to get a notification when a (floating) control is closed?

I used to subscribe to dockingManager.DockVisibilityChanged event for that, but now it's also fired when the control is being docked or when the host form is minimized. Can you please suggest me how to handle it? I looked at the DockingManager's events but couldn't find an analogue of ControlClosed event.

16 Replies

MU Murugan Syncfusion Team November 30, 2006 07:07 PM UTC

Hi Andrew,

The dockingManager.DockVisibilityChanged is fired when the docked controls visibility state changed to either true or false. We can check the visible property of the docked control when the event gets fired. Here is the code snippet
private void dockingManager1_DockVisibilityChanged(object sender, Syncfusion.Windows.Forms.Tools.DockVisibilityChangedEventArgs arg)
{
if (!arg.Control.Visible)
{
MessageBox.Show(arg.Control.Name + " is closed" );
}
}

When docked control's visible property is false, We have initiated MessageBox to show up the notification about window closing. Herewith I have attached the sample. Please refer the sample and let me know if the problem gets resolved.
ClosingFloatingWindow
Thank you for choosing Syncfusion products.
Regards,
Murugan P.S


AD Administrator Syncfusion Team November 30, 2006 10:26 PM UTC

Interesting. In my case, I get the DockVisibilityChanged event (with the arg.Control.Visible == false) when I minimize the host form. I have no idea what causes it.

In my case, it's an MDI app with child forms that host dockable controls, could this be the reason?


MU Murugan Syncfusion Team November 30, 2006 11:40 PM UTC

Hi Andrew,

I am afraid that we were not able to reproduce issue . I have tried with MDI form and child windows that hosts docked controls. Herewith I have attached sample that is used here to reproduce the issue. Could you please modify the sample to reproduce the issue?. This will help us to resolve the issue soon.
 ClosingFloatingWindow.zip
Thanks,
Murugan P.S


AD Administrator Syncfusion Team December 1, 2006 08:32 PM UTC

In your example, there is an MDI container that simply shows SDI forms with dockable controls (new SdiForm().Show()) instead of hosting it. I'm trying to reproduce the issue, stay put...


AD Administrator Syncfusion Team December 1, 2006 08:49 PM UTC

The bug is reproduceable if you _host_ the child form instead of just showing it. Attached is an example. Run it, undock the panel in the child form to make it floating and then minimize the MdiForm. You'll get an DockVisibilityChanged event with arg.Control.Visible = false

//19341 - this is added so I can find this thread in the future. We desperately need the "my threads" feature :)

ClosingFloatingWindow.zip


MU Murugan Syncfusion Team December 1, 2006 11:08 PM UTC

Hi Andrew,

Thanks for your sample. We were able to reproduce the issue. We will contact the development team regarding this and let you know the details on Monday.

Thanks,
Murugan P.S


AD Administrator Syncfusion Team December 12, 2006 09:18 PM UTC

>Hi Andrew,

Thanks for your sample. We were able to reproduce the issue. We will contact the development team regarding this and let you know the details on Monday.

Thanks,
Murugan P.S

Hi,

Any update on this issue?

-Andrew


MU Murugan Syncfusion Team December 12, 2006 10:52 PM UTC

Hi Andrew,

Sorry for the delay in responding. We are currently working on the issue. We will fix the issue soon and keep you informed.

Thanks for your patience.

Regards,
Murugan P.S


AD Administrator Syncfusion Team January 5, 2007 05:38 PM UTC

Any news?


MU Murugan Syncfusion Team January 5, 2007 06:15 PM UTC

Hi Andrew,

Sorry for the long delay in responding. We have fixed the issue internally. Our next patch will contain the bug fix.

Thanks for your patience.

Regards,
Murugan P.S


MU Murugan Syncfusion Team January 10, 2007 12:18 AM UTC

Hi Andrew,

If you need private patch, please create a directTrac incident and and let me know the incident ID. Also provide Essential Studio version details for private patch.

Thanks,
Murugan P.S


AD Administrator Syncfusion Team January 12, 2007 05:52 PM UTC


>Hi Andrew,

If you need private patch, please create a directTrac incident and and let me know the incident ID. Also provide Essential Studio version details for private patch.

Thanks,
Murugan P.S

Hi Murugan,

I've just created DT incident #31087. I'm not sure what you mean by "ES version details", though. We had 4.4.0.51 version and we recently installed another private patch 4.4.0.54

Thanks!
Andrew


AS Andrew Skalkin April 4, 2007 08:20 PM UTC

The bug is back in version 5.1.0.0 :((((


GM Geetha M Syncfusion Team April 6, 2007 09:35 AM UTC

Hi Andrew,

We regret for the inconvenience caused.

The fix for this issue is somehow missed in the beta release. We have included the fix in our source and next release of Essential Studio v5.1 will ship with the fix in place.

Best Regards,
Geetha


SU Subash March 13, 2018 07:38 PM UTC

Hi team, 
wonder, how to use column template in angular 5.
seems its not working.
this is my code 

<e-column headerText='' width='120' textAlign="center">
<ng-template e-template let-data>
<div>
<img style="width: 75px; height: 70px" [src]="'/assets/img/avatars/male.png'" alt="" />
</div>
</ng-template>
</e-column>


VN Vignesh Natarajan Syncfusion Team March 14, 2018 01:48 PM UTC

Hi Subash, 

Thanks for using Syncfusion products.  

We have analyzed your query and we have prepared a sample using your code in angular 5 project. We are not able to reproduce the reported issue “Column template feature is working fine” from our end.   

For your convenience we have prepared a sample which can be downloaded from below link 


Kindly share the following details to reproduce the reported issue at our end. 

  1. Share the full Grid rendering code.
  2. Share the screenshot of script error in console window (if any).
  3. Are you using any adaptor?
  4. If possible try to reproduce the reported error in console window.

Regards, 
Vignesh Natarajan 


Loader.
Up arrow icon