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

BackColorChanged event gets fired when the control is inside a RadPageView

2 Answers 46 Views
TextBox
This is a migrated thread and some comments may be shown as answers.
Jonathan
Top achievements
Rank 1
Jonathan asked on 11 Nov 2015, 08:56 PM

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 Answers, 1 is accepted

Sort by
0
Jonathan
Top achievements
Rank 1
answered on 11 Nov 2015, 08:58 PM

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

Thanks

0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 16 Nov 2015, 09:08 AM
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

Tags
TextBox
Asked by
Jonathan
Top achievements
Rank 1
Answers by
Jonathan
Top achievements
Rank 1
Dess | Tech Support Engineer, Principal
Telerik team
Share this question
or