BackColorChanged event gets fired when the control is inside a RadPageView

3 posts, 0 answers
  1. Jonathan
    Jonathan avatar
    2 posts
    Member since:
    Nov 2015

    Posted 11 Nov 2015 Link to this post

    I don't understand why but if you place a RadTextBox or a RadTextBoxControl with a BackColorChanged event setup inside a RadPageView the BackColorChanged event is raised before the Form_Load method when you start the app without changing the BackColor of the RadTextBox. If you move the control outside the RadPageView the BackColorChanged event does not get raised which is the expected behavior.

    I wonder if this is a known issue?

    Any idea how to prevent the BackColorChanged event to get raised when the control is inside a RadPageView?

     

  2. Jonathan
    Jonathan avatar
    2 posts
    Member since:
    Nov 2015

    Posted 11 Nov 2015 in reply to Jonathan Link to this post

    I posted in the wrong place. This is a Windows app. Admin, please move this thread to right location.

    Thanks

  3. UI for WinForms is Visual Studio 2017 Ready
  4. Dess
    Admin
    Dess avatar
    1601 posts

    Posted 16 Nov 2015 Link to this post

    Hello Jonathan,

    Thank you for writing.

    The RadTextBox/RadTextBoxControl's BackColorChanged event is fired when initializing the RadPageViewContentAreaElement and each of the available pages. As the RadPageViewPage is a parent for the RadTextBox/RadTextBoxControl, it is normal to trigger the BackColorChanged for the child controls as well. In order to deal with this case, you can subscribe to the BackColorChanged event in the Form.Load event.


    I hope this information helps. Should you have further questions I would be glad to help.
     
    Regards,
    Dess
    Telerik

Back to Top