This is a migrated thread and some comments may be shown as answers.

Programmatically scroll content in SyntaxEditor

2 Answers 85 Views
SyntaxEditor
This is a migrated thread and some comments may be shown as answers.
Gonzalo
Top achievements
Rank 1
Gonzalo asked on 27 Jan 2021, 01:56 AM
How can I proggramatically scroll the SyntaxEditor content?

2 Answers, 1 is accepted

Sort by
0
Dilyan Traykov
Telerik team
answered on 29 Jan 2021, 02:26 PM

Hello Gonzalo,

You can scroll the RadSyntaxEditor through its EditorPresenter in a similar manner:

this.syntaxEditor.EditorPresenter.SetVerticalOffset(this.syntaxEditor.EditorPresenter.VerticalScrollOffset + 10);
Please give this a try and let me know if such an approach would work for you.

Regards,
Dilyan Traykov
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/.

0
Gonzalo
Top achievements
Rank 1
answered on 29 Jan 2021, 03:26 PM
It worked. Thanks!
Tags
SyntaxEditor
Asked by
Gonzalo
Top achievements
Rank 1
Answers by
Dilyan Traykov
Telerik team
Gonzalo
Top achievements
Rank 1
Share this question
or