functionOnClientEntryAdding(sender, args) {
var duplicates = sender.get_entries().toArray().filter(function (item) {
return (item.get_text() == args.get_entry().get_text() &&
item.get_value() == args.get_entry().get_value())
});
if (duplicates.length > 0) {
// there is already a token with the same text and value
args.set_cancel(true)
}
}
Regards,
Peter Milchev
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/.