Completed
Last Updated: 28 May 2022 00:58 by ADMIN
Release R2 2022 SP1
Joe
Created on: 11 May 2022 21:38
Category: SyntaxEditor
Type: Bug Report
1
RadSyntaxEditor: Unable to select text at the beginning of a line using the mouse

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.

 

3 comments
ADMIN
Dess | Tech Support Engineer, Principal
Posted on: 16 May 2022 10:16
Hello, Joe,   

Indeed, the illustrated gif file shows the weird overlapping between the line numbers and the code. However, following the provided information, I was unable to reproduce the issue you are facing. Please refer to the attached gif file illustrating the behavior on my end with the latest version. I have attached my sample project. Please give it a try and see how it works on your end. Am I missing something? Could you please specify the exact steps how to reproduce the problem? Feel free to modify the project in a way to reproduce the experienced issue and get back to me with it so I can investigate the precise case. Thank you in advance. 

I am looking forward to your reply.

Regards,
Dess | Tech Support Engineer, Principal
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Joe
Posted on: 13 May 2022 18:46

Thanks for the info, Dess.

Removing that margin, as you describe, does allow the selection process to work as expected.

Unfortunately, doing so also messes with the ShowLineNumbers functionality (which is a needed feature).  The user is currently able to toggle line numbers on and off, but with the below code you suggest, now they overlap with the source. -- SEE ATTACHED GIF.

Thoughts on how to do both?

Thanks,

Joe

ADMIN
Dess | Tech Support Engineer, Principal
Posted on: 13 May 2022 12:55

Hello, Joe,   

I am really sorry that you are experiencing any difficulties with RadSyntaxEditor.

Following the provided information, I have tested the behavior on my end. Please refer to the attached gif file. It is important to note that whether the selection is started from the empty space before the code or from the first character on the line itself. 

I am approving this item by changing its status to Unplanned. I have also updated your Telerik points.

A possible solution that i can suggest is to remove the FolderMarging: 

 this.radSyntaxEditor1.SyntaxEditorElement.Margins.ScrollableLeft.RemoveAt(1);

I hope this information helps. If you need any further assistance please don't hesitate to contact me. 

Regards,
Dess | Tech Support Engineer, Principal
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Attached Files: