This is a migrated thread and some comments may be shown as answers.

VisbileChanged Event fired at DesignTime?

2 Answers 45 Views
Dock
This is a migrated thread and some comments may be shown as answers.
Technik
Top achievements
Rank 1
Technik asked on 12 Jun 2008, 12:37 PM
Hello,

I am having problems with the docking manager (6.0.2.0) at Design time again.

One of the Panels I am using in the docking manager has a Handler for the VisibleChanged-Event (so it fills its components with data the first time its actually visible)

This caused the visual studio designer (!!) to freeze (CPU 100%).
When I comment out the VisibleChanged Handler of the Panel , everything works fine.

At runtime both alternatives work.

So do events actually get fired at design time ?

Which DockPanel-Event should I handle if I want to intialize components (for example fill a RadComboBox with data) at runtime when they are first visible to the user.


Greetings

2 Answers, 1 is accepted

Sort by
0
erwin
Top achievements
Rank 1
Veteran
Iron
answered on 12 Jun 2008, 07:14 PM

Events do get fired at design time in all windows forms components that can be loaded into the designer. You can use the DesignMode Property to implement different handling when in the Designer (for example use fake data instead of querying a database).

if (this.DesignMode)

{

return;

}

0
Julian Benkov
Telerik team
answered on 13 Jun 2008, 08:49 AM
Hello Falk,

Another customer has already raised the same issue. Please find the response at this location:
http://www.telerik.com/community/forums/thread/b311D-bedtak.aspx

Let us know if you need further assistance.

Regards,
Julian Benkov
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Dock
Asked by
Technik
Top achievements
Rank 1
Answers by
erwin
Top achievements
Rank 1
Veteran
Iron
Julian Benkov
Telerik team
Share this question
or