VisbileChanged Event fired at DesignTime?

3 posts, 0 answers
  1. Falk Wegener
    Falk Wegener avatar
    28 posts
    Member since:
    Oct 2007

    Posted 12 Jun 2008 Link to this post


    I am having problems with the docking manager ( 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.

  2. erwin
    erwin avatar
    400 posts
    Member since:
    Dec 2006

    Posted 12 Jun 2008 Link to this post

    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)




  3. Julian Benkov
    Julian Benkov avatar
    1135 posts

    Posted 13 Jun 2008 Link to this post

    Hello Falk,

    Another customer has already raised the same issue. Please find the response at this location:

    Let us know if you need further assistance.

    Julian Benkov
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
Back to Top