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

Find All is not working

3 Answers 66 Views
SyntaxEditor
This is a migrated thread and some comments may be shown as answers.
Patrick
Top achievements
Rank 2
Iron
Iron
Iron
Patrick asked on 21 Oct 2019, 01:25 PM

Hello,

In the SyntaxEditor, When I press Ctrl+F, enter text and click "Find All", nothing happens, even if the text is in the source file.

3 Answers, 1 is accepted

Sort by
0
Dilyan Traykov
Telerik team
answered on 24 Oct 2019, 11:28 AM

Hello Patrick,

With the current implementation of the RadSyntaxEditor control, a TextSearchHighlightTagger needs to be registered in the TaggersRegistry for the highlighting of the find and replace dialog to work. You can register the tagger like so:

var textSearchTagger = new TextSearchHighlightTagger(this.syntaxEditor, TextSearchHighlightTagger.SearchFormatDefinition);
this.syntaxEditor.TaggersRegistry.RegisterTagger(textSearchTagger);

I have forwarded this scenario to our development team and we will consider registering this tagger out of the box for the official version of the control.

Nonetheless, I hope you find registering this tagger manually applicable for the time being. Please let me know if this is indeed the case.

Regards,
Dilyan Traykov
Progress Telerik

Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which allow you to write beautiful native mobile apps using a single shared C# codebase.

0
Patrick
Top achievements
Rank 2
Iron
Iron
Iron
answered on 24 Oct 2019, 11:42 AM

Hi Dilyan,

Thank you for your answer.

I will use the workaround now, but I think that this should be "in the box", because the control implements the "find all" by default.

0
Dilyan Traykov
Telerik team
answered on 25 Oct 2019, 03:09 PM

Hi Patrick,

I'm happy to inform you that we've already introduced a fix for this issue which will be available with our internal build on Monday.

Please let me know once you manage to test this out.

Regards,
Dilyan Traykov
Progress Telerik

Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which allow you to write beautiful native mobile apps using a single shared C# codebase.
Tags
SyntaxEditor
Asked by
Patrick
Top achievements
Rank 2
Iron
Iron
Iron
Answers by
Dilyan Traykov
Telerik team
Patrick
Top achievements
Rank 2
Iron
Iron
Iron
Share this question
or