Completed
Last Updated: 13 Nov 2024 12:49 by ADMIN
Release 2024.4.1113 (2024 Q4)
In this case, we have a longer text on a single line. When the text goes outside of the view area, a horizontal scroll will appear. When we click at the begging of the line and scroll to the end of the line, clicking at the end of the text line will not change the caret position, thus we can't see the caret.
Completed
Last Updated: 07 Aug 2024 15:07 by ADMIN
Release 2024.3.806 (2024 Q3)
In this particular case, we have RadSyntaxEditor control and MS Button. The MS Button have mnemonic text: "&OK". When the RadSyntexEditor control editor is focused and we press the O button, the Click event of the MS Button is triggered. This way we can't press the O key while RadSyntaxEditor control is focused.
Completed
Last Updated: 31 Jan 2024 11:39 by ADMIN
Release 2024 Q1 (2024.1.130)

The component itself seems to work fine with DPI scaling except for the search/find functionality. When you search for some text and click to go to the first instance it finds, the actual text is off-screen, though it is highlighted correctly (when you scroll down you can see it highlighted).

This is easy to replicate by changing the Windows display scale to anything other than 100%.

Unplanned
Last Updated: 15 Mar 2023 15:12 by ADMIN

Use the following code in the project:

    Private Sub btnToggleWW_Click(sender As Object, e As EventArgs) Handles btnToggleWW.Click
        RadSyntaxEditor1.IsWordWrapEnabled = Not RadSyntaxEditor1.IsWordWrapEnabled
        Me.Text = RadSyntaxEditor1.IsWordWrapEnabled.ToString()

    End Sub

When you enable the word wrapping, the horizontal scrollbar is collapsed:

However, when the word wrapping is disabled, the scrollbar doesn't reappear anymore:

Unplanned
Last Updated: 27 Jun 2022 11:31 by Dinko
Created by: Dinko
Comments: 0
Category: SyntaxEditor
Type: Feature Request
1
Currently, you search in the entire document. Add options like in the Visual Studio or Notepad++ to choose where to search and replace. Those options should be in the entire document (like the default behavior) or the current selection. 
Completed
Last Updated: 28 May 2022 00:58 by ADMIN
Release R2 2022 SP1

This is an odd one - see attached GIF.

If I attempt to select characters with the mouse (left-click + drag), at the beginning of any line of text, it won't highlight (90+% of the time).  That's if I'm dragging from left-to-right.

If I select the same text from right-to-left, it works every time.

 

Completed
Last Updated: 22 Mar 2022 13:50 by ADMIN
Release R2 2022 (LIB 2022.1.322)

Setting the SyntaxEditorElement.IsReadOnly property to true disables editing the text inside RadSyntaxEditor. However, when opening the Find and Replace dialog, the user is still allowed to replace the text and thus change the content in the document. This shouldn't be allowed when the control is in read-only mode.

Workaround:

            this.radSyntaxEditor1.SyntaxEditorElement.InputHandler = new MyInputBehavior(this.radSyntaxEditor1.SyntaxEditorElement);

        public class MyInputBehavior : SyntaxEditorInputBehavior
        {
            public MyInputBehavior(RadSyntaxEditorElement editor) : base(editor)
            {
                
            }

            protected override void PerformOpenFileDialog(KeyEventArgs e)
            {
                this.SyntaxEditor.SearchPanel.ReplaceAllButton.Enabled = false;
                this.SyntaxEditor.SearchPanel.ReplaceButton.Enabled = false;
                this.SyntaxEditor.SearchPanel.ReplaceTextBox.Enabled = false;
                base.PerformOpenFileDialog(e);
            }
        }

Completed
Last Updated: 20 Oct 2021 09:12 by ADMIN
Release R3 2021 SP1

When I setup and OverloadList, the OverloadListWindow follows the cursor and can move off screen so the user can't see/read the information that is presented.

Workaround: adjust the position of the overload window when it is shown:

            this.radSyntaxEditor1.SyntaxEditorElement.IntelliPrompts.OverloadListWindow.VisibleChanged+=OverloadListWindow_VisibleChanged;

        private void OverloadListWindow_VisibleChanged(object sender, EventArgs e)
        {
           ShapedForm f = sender as ShapedForm;
            Screen myScreen = Screen.FromControl(this);
            Rectangle area = myScreen.WorkingArea;
            if (f.Left + f.Width > area.Width)
            {
                f.Left = area.Width - f.Width -5;
            }
        } 

Completed
Last Updated: 08 Oct 2021 10:15 by ADMIN
Release R3 2021 SP1
Unplanned
Last Updated: 10 Sep 2021 10:04 by ADMIN
Created by: Steve
Comments: 0
Category: SyntaxEditor
Type: Feature Request
0
Currently, when you copy the content in RadSyntaxEditor and paste it in MS Word, the highlighting is lost and the pasted content is inserted as plain text. It would be really a nice feature to preserve the highlight as well which may require implementing some kind of exporting the content to .docx or .rtf.
Completed
Last Updated: 30 Aug 2021 11:33 by ADMIN
Release R3 2021
Unplanned
Last Updated: 26 Feb 2021 12:13 by ADMIN

This is how it is parsed in Microsoft SQL server Management Studio:

Completed
Last Updated: 29 Mar 2021 07:31 by ADMIN
Release R2 2021 (LIB 2021.1.329)
Declined
Last Updated: 05 Jul 2024 12:54 by ADMIN

When using the new Office 2019 Light theme in the SyntaxEditor there are no scrollbars displayed in the CompletionList window. Also the list is not scrollable using the scrollwheel. Only when using the arrows on the keyboard.

When using the fluent theme it is working fine.

See attached screenshots.

Completed
Last Updated: 29 Mar 2021 15:51 by ADMIN
Release R2 2021 (LIB 2021.1.329)
Completed
Last Updated: 15 Feb 2021 10:57 by ADMIN
Release R1 2021 SP2

If my xml string contains an element with attributes, XMLFoldingTagger just ignores it!

 

For example:

<Formular DebugMode="F" Version="1" Typ="Rechnung">

     <OtherElements/>

<Formular/>

 

is ignored. Element Formular is not recognized by the XMLFoldingTagger. Only simple elements are recognized, like:

 

<Formular>

     <OtherElements/>

<Formular/>

 

 

Completed
Last Updated: 15 Aug 2024 11:50 by ADMIN
Unplanned
Last Updated: 03 Dec 2020 10:14 by ADMIN

This is the current implementation that is used in RadSyntaxEditor when navigating to the next/previous word, start/end of the current word, etc. It would be good to have an event that allows you to specify the ChartType according to your needs and thus affecting the words navigation in the document.

        internal static CharType GetCharType(char c)
        {
            if (CharsToBeTreatedAsDefault.Contains(c))
            {
                return CharType.Default;
            }

            if (LineBreak.IsLineBreak(c))
            {
                return CharType.NewLine;
            }

            if (char.IsWhiteSpace(c))
            {
                return CharType.WhiteSpace;
            }

            if (char.IsPunctuation(c) || char.IsSymbol(c))
            {
                return CharType.PunctuationOrSymbol;
            }

            return CharType.Default;
        }

Completed
Last Updated: 11 Jan 2021 10:25 by ADMIN
Release R1 2021

RadSyntaxEditorElement offers the following method: public CaretPosition GetPositionFromPoint(System.Drawing.Point point)

However, it doesn't return the correct CaretPosition as it requires to transform the System.Drawing.Point first:

        private void MySyntaxEditor1_MouseDown(object sender, MouseEventArgs e)
        {  
            CaretPosition pos = mySyntaxEditor1.SyntaxEditorElement.GetPositionFromPoint(GetPosition(e, mySyntaxEditor1.SyntaxEditorElement.EditorPresenter)); 
            CaretPosition start = new CaretPosition(pos);
            start.MoveToCurrentWordStart();
            CaretPosition end = new CaretPosition(pos);
            end.MoveToCurrentWordEnd();
            mySyntaxEditor1.SyntaxEditorElement.Selection.Select(start, end);
        }

 public Telerik.WinControls.SyntaxEditor.UI.Point GetPosition(System.Windows.Forms.MouseEventArgs args, Telerik.WinControls.SyntaxEditor.UI.UIElement element)
        {

            System.Drawing.Point screenLocation = mySyntaxEditor1.SyntaxEditorElement.PointToScreen(args.Location);
            System.Drawing.Point point = element.PointFromScreen(screenLocation);
            Telerik.WinControls.Layouts.RadMatrix matrix = element.TotalTransform;
            matrix.Invert();

            return new System.Drawing.PointF(point.X * matrix.ScaleX, point.Y * matrix.ScaleY);
        }

Completed
Last Updated: 30 Dec 2020 14:13 by ADMIN
Release R1 2021
If setting "Allow Scaling" to False, it would be nice it the ZoomComboBox is automatically hidden and the vertical scroll bar fills the space. When Allow Scaling is false, the user can still change the the zoom factor, but nothing happens which is confusing. Although setting SyntaxEditorElement.ZoomComboBox.Visibility to Collapsed does remove the ZoomComboBox, it does not cause the vertical scroll bar to fill the space resulting in slight strange looking UI.
1 2