Completed
Last Updated: 14 May 2020 15:18 by ADMIN
Release LIB 2020.2.518 (18.05.2020)
Petar
Created on: 08 May 2020 11:33
Category: SyntaxEditor
Type: Bug Report
1
SyntaxEditor: Control loses focus when placed inside ScrollViewer and clicked

When the control is inside ScrollViewer and you click it, focus is lost and caret disappears. Some controls have built in ScrollViewer , for example LayoutControl so placing the editor in LayoutControl also leads to the same issue.

Generally placing the syntaxeditor in scrollviewer is risky for the vertical virtualization so at least a height should be set to the control. In R2 2020 SP, an exception will be thrown if Syntax Editor with no height is added in scroll viewer or stack panel or other panel which measures vertically with infinity.

Workaround for this issue:

        private void syntaxEditor_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
        {
            e.Handled = true;
        }
1 comment
Ian
Posted on: 09 May 2020 13:54

For me, the workaround did not work.  

I had to replace the containing telerik:LayoutControlTabGroup with telerik:RadTabControl.  Then the syntax editor started functioning properly.