Unplanned
Last Updated: 15 Sep 2021 06:18 by ADMIN
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
Completed
Last Updated: 29 Mar 2021 15:51 by ADMIN
Release R2 2021 (LIB 2021.1.329)
Completed
Last Updated: 29 Mar 2021 07:31 by ADMIN
Release R2 2021 (LIB 2021.1.329)
Unplanned
Last Updated: 26 Feb 2021 12:13 by ADMIN

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

Under Review
Last Updated: 19 Feb 2021 14:51 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: 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 Feb 2021 10:26 by ADMIN
Release R1 2021 SP2
Created by: Iprel
Comments: 2
Category: SyntaxEditor
Type: Feature Request
0
How can I hide line numbers?
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:56 by ADMIN
Release R1 2021

Please refer to the attached gif file.

Workaround: set bottom padding by setting the SyntaxEditorElement.HorizontalScrollBar.Padding property. 

mySyntaxEditor1.SyntaxEditorElement.HorizontalScrollBar.Padding = new Padding(0, 0, 0, 2);

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.
Unplanned
Last Updated: 15 Dec 2020 08:05 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;
        }

Unplanned
Last Updated: 25 Nov 2020 12:01 by ADMIN
Created by: Ken
Comments: 0
Category: SyntaxEditor
Type: Feature Request
0
We would like to take advantage of hyperlinks to show the user the "friendly name" of an identifier while in the actual script, we store the identifier index. This enables the user to change the friendly name of any identifier without having to go through all scripts that references the identifier, since they are stored as an index. We allow the user to click on the hyperlink which brings up an "Identifier Picker" that lets the user select identifiers defined in the system.
Completed
Last Updated: 01 Sep 2020 09:43 by ADMIN
Release R3 2020
Created by: Christian
Comments: 1
Category: SyntaxEditor
Type: Bug Report
0

XmlFoldingTagger throws while entering XML. When closing the root tag on the next line, the Tagger throws once you enter the '/' (before.png -> after.png).
Adding a second opening tag and converting it to closing by inserting the '/' afterwards works.

When adding a child tag, the tagger offers to fold the unfinished tag against the root closing tag, and throws if you try to do so.

Completed
Last Updated: 21 Aug 2020 12:32 by ADMIN
Release R3 2020 (LIB 2020.2.826)
I am using RadSyntaxEditor to achieve functionality such as showing some overloading of function. But I have a problem when I need to change overloadListWindow.Presenter.OverloadListItems with new OverloadInfoCollection, UI part is not changed. I assume that this change doesn't fire INotifyPropertyChanged, and that is a reason why UI is not updated. In a case, we change overloadListWindow.Presenter.OverloadListItems like in a radButton1_Click event handler, there is no change until I use the arrows button on the keyboard (probably that is a time where is INotifyPropertyChanged event is fired). I was trying to do some workaround, and that was a case where I tried to clear this.radSyntaxEditor1.SyntaxEditorElement.IntelliPrompts.OverloadListWindow.Presenter.OverloadListItems but in that case, I got NullReferenceException even if instance is not null.

using System;
using System.Windows.Forms;
using Telerik.WinForms.Controls.SyntaxEditor.UI;
using Telerik.WinForms.Controls.SyntaxEditor.UI.IntelliPrompt.Overloading;
 
namespace WindowsFormsApp1
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
 
            OverloadInfoCollection overloadListA = new OverloadInfoCollection { new OverloadInfo("aaa", "aaa description") };
            this.radSyntaxEditor1.SyntaxEditorElement.IntelliPrompts.OverloadListWindow.Presenter.OverloadListItems = overloadListA;
        }
 
        private void btnClear_Click(object sender, EventArgs e)
        {
            this.radSyntaxEditor1.SyntaxEditorElement.IntelliPrompts.OverloadListWindow.Presenter.OverloadListItems.Clear();
        }
 
        private void btnChange_Click(object sender, EventArgs e)
        {
            OverloadInfoCollection overloadListB = new OverloadInfoCollection { new OverloadInfo("bbb", "bbb description") };
 
            OverloadListPopup overloadListWindow = this.radSyntaxEditor1.SyntaxEditorElement.IntelliPrompts.OverloadListWindow;
            overloadListWindow.Presenter.OverloadListItems = overloadListB;
            overloadListWindow.Refresh();
        }
 
        private void radButton1_Click(object sender, EventArgs e)
        {
            OverloadInfoCollection overloadListC = new OverloadInfoCollection { new OverloadInfo("ccc", "ccc description"), new OverloadInfo("ccc 1", "ccc 1 description") };
            this.radSyntaxEditor1.SyntaxEditorElement.IntelliPrompts.OverloadListWindow.Presenter.OverloadListItems = overloadListC;
        }
 
        private void radSyntaxEditor1_DocumentContentChanged(object sender, Telerik.WinForms.SyntaxEditor.Core.Text.TextContentChangedEventArgs e)
        {
            this.radSyntaxEditor1.SyntaxEditorElement.IntelliPrompts.OverloadListWindow.Show();
        }
    }
}

Completed
Last Updated: 19 Aug 2020 15:29 by ADMIN
Release R3 2020
The popup form does not show correctly, when the caret is at the bottom of the screen and there is a vertical scrollbar activated. 
Completed
Last Updated: 18 Aug 2020 12:40 by ADMIN
Release R3 2020

Hi Team , I want to make my syntax editor readonly and user should not be able to make any changes.

I have made my

((Telerik.WinControls.UI.RadSyntaxEditorElement)(this.radSyntaxEditor.GetChildAt(0))).IsReadOnly = true; .

But still the user is able to delete the data by pressing delete button .

How can we restrict this.

I also tried radSyntaxEditor.enabled=false. It disables editing but the are is greyed out.

 

Thanks

Declined
Last Updated: 22 Jul 2020 15:42 by ADMIN

A programmatically created selection keeps highlighting the following part of the text when its original content is deleted via keyboard.

If there are less characters left than the selection encompassed, further editing will result in unhandled Exceptions.

 Steps to reproduce:

  1. Enter multiple lines of text in RadSyntaxEditor
  2. Programmatically set Selection.
  3. Press [Del] or [Backspace] or [Ctrl-X] to remove the selected Text.
1 2