Can't Access to my SyntaxEditor with mouse

1 Answer 61 Views
SyntaxEditor
Florian
Top achievements
Rank 1
Iron
Iron
Florian asked on 30 Nov 2022, 01:18 PM

Hi, 

I'm currently trying to use RadSyntaxEditor in my solution but I cannot use my mouse to select a position in it.

I've got a TabControlItem containing some DockPanel. Most of them are TextBlock (Label) + TextBox (Value) or TextBlock (Label) + ComboBox (value) and the last is composed of a TextBlock (Still Label) and a RadSyntaxEditor.

It contains a TextDocument and use xmlTaggers.

Everything works except that I cannot click inside to select a position. I only can double-click to select a block of text and move it.

If I use mouse click inside or outside, the only way to go back inside is to use Tab to switch accross all other control...

When I'm inside, I can write, add tabulation, click enter, everything ! but only with keyboard. One click with the mouse and I have to use Tab to get back in.

Can you help me to resolve this ?

Stenly
Telerik team
commented on 01 Dec 2022, 11:02 AM

Hello Florian,

I generally understand the matter at hand, however, in order to prevent any misunderstandings, would it be possible to share a bit more information about this setup? More specifically, how are the TabControl, the tab items, and the RadSyntaxEditor defined? This will allow me to create a sample project, which is as close as possible to the scenario on your end, and try to reproduce this behavior.

1 Answer, 1 is accepted

Sort by
0
Florian
Top achievements
Rank 1
Iron
Iron
answered on 02 Dec 2022, 09:16 AM

Update :

I succeed to solve this problem. My RadSyntaxEditor was inside a ScrollViewer control and it was the problem.

Moreover, it seems that you can't use any ScrollViewer control with RadSyntaxEditor no matter about his level.

For example, my RadSyntaxEditor was inside a DockPanel, himself inside a RadTabItem with others DockPanel and the ScrollViewer was englobing all the RadTabControl.

Tags
SyntaxEditor
Asked by
Florian
Top achievements
Rank 1
Iron
Iron
Answers by
Florian
Top achievements
Rank 1
Iron
Iron
Share this question
or