How do you unregister an unknown tagger?

1 Answer 66 Views
SyntaxEditor
Troy
Top achievements
Rank 3
Bronze
Iron
Iron
Troy asked on 08 Feb 2023, 03:30 AM

I'm trying to unregister a tagger for an radSyntaxEditor.  I've applied a tagger previously and want to change it.  So far, it appears that I'd have to save which tagger was used prior, and then unregister it that way?

Meaning, there's no way (that I could find) to get a list of applied taggers.  All of the methods assume you already know what is applied.

I guess you could create an object of each type of tagger and then check for every possible tagger and then remove it, but...

Basically, what I was expecting was either a way to get a collection of the applied taggers, or be able to call the UnRegisterTaggers without parameters to remove them all, etc.

Any help would be great!

1 Answer, 1 is accepted

Sort by
0
Dinko | Tech Support Engineer
Telerik team
answered on 09 Feb 2023, 01:10 PM

Hi Troy,

You are on the right track. You will need to cache the added taggers to the control. So that you could remove them at a later stage. The taggers registry does not expose an API to get all taggers. What I can suggest is to store the taggers which you are going to use. Then register them and unregister them if you don't need them anymore. Still, the registry exposes the IsTaggerRegistered() method which could use to check which one of your taggers is registered. I hope that, nevertheless, the required method does not exist, you could still continue developing your application.

Regards,
Dinko | Tech Support Engineer
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/.

Troy
Top achievements
Rank 3
Bronze
Iron
Iron
commented on 09 Feb 2023, 09:09 PM

Thanks for your reply.  It makes this more difficult, but I should be able to work around it.  If possible, can I make the suggestion that the methods .add, .remove and a collection and such be added?  Thanks again.
Dinko | Tech Support Engineer
Telerik team
commented on 10 Feb 2023, 12:03 PM

You can log your suggestions in our Feedback Portal, where they will be closely reviewed by our support and development team. 
Tags
SyntaxEditor
Asked by
Troy
Top achievements
Rank 3
Bronze
Iron
Iron
Answers by
Dinko | Tech Support Engineer
Telerik team
Share this question
or