I've tried creating a new method called when myRTB.GotFocus and placing '_myRTB.UpdateEditorLayout();' in there and it made no difference.
My bold function works for whatever is selected, the focus is set to _myRTB, but for whatever reason the cursor doesn't display, and input from the keyboard is ignored.
6 Answers, 1 is accepted
There was an issue related to RadRichTextBox.Focus() method that we resolved in Q2.SP2 release.
Here is a workaround for the previous versions (Q2.SP1 and earlier):
With SP2 version the cursor should appear on the position it was last as soon as your RadRichTextBox receives the focus . You set the focus as simple as this:
If the cursor does not appear where it last was, then you are probably using an older version of our controls and you have to manually set the position of the cursor, as shown below:
Let us know whether this helps.
the Telerik team
Thanks for your help.
I just ran into this problem again today. I was calling:
and the focus was not going into the radRichTextBox and the caret was not being displayed.
I replaced it with a call to:
And everything is working fine.
I am using v2017.2.503 of the Telerik libraries (I think that is Q2 2017).
Sorry to necro this thread.
I had thought the change I made above fixed the problem I was seeing. It did not. I need to look further into the problem I am seeing.
We have logged an issue that the caret inside the document disappears but the focus remains in the control and users are able to use it as expected. The issue in question is reproduced only in WPF and only when the scale factor of RadRichTextBox is less than 100%. You can find the information we have about this behavior in the related public item. Could you please confirm whether the case you are observing is the same or it is different? If it is different, a more detailed description of the steps that can be used to reproduce the behavior would be much appreciated.