Last Updated: 07 Oct 2021 06:27 by ADMIN
Release LIB 2021.3.1011 (11 Oct 2021)
Created on: 22 Nov 2017 14:05
Category: RichTextBox
Type: Bug Report
RichTextBox: Focus events are not raised consistently
Focus events (GotFocus, LostFocus) are raised inconsistently for RadRichTextBox, due to the internal translation of the focus to the Caret.


1. Clicking inside the control, when the focus is already inside the control, triggers LostFocus, GotFocus, LostFocus, GotFocus events.

2. Switching internal editors (headers/footers) raises GotFocus and LostFocus.

3. If the control is inherited and OnGotFocus/OnLostFocus are overriden, they are never called (despite OnGotFocus one time in the beginning

The behavior is problematic, as this events are useful for custom validation scenarios.
1 comment
Ivan Ivanov
Posted on: 07 Oct 2021 04:59

I am writing to add update on the listed issues.

  1. Is now fixed
  2. There are no active client requests regarding this issue. In case this issue is impeding you, please write to us through the support forums or the ticketing system.
  3. After further observation, we decided that this one should not be considered an issue. OnGotFocus and OnLostFocus are not expected to get called when the control is routing a bubbling focus event that is raised by one of its focusable parts. In such cases, an internal subscription to the LostFocus/GotFocus events should be the proper way of accomplishing the task. In case that you do not find this approach satisfactory enough, please write back to us and we will discuss the options together.