Chiplist Clear Items

1 Answer 112 Views
ChipList
Richard
Top achievements
Rank 1
Richard asked on 24 Mar 2023, 04:03 PM
Is there a way to clear the chiplist items using jquery. Can populate, however have not found a way to clear list.

1 Answer, 1 is accepted

Sort by
0
Mihaela
Telerik team
answered on 27 Mar 2023, 01:06 PM

Hello Richard,

The ChipList supports the remove() API method that allows you to remove its items.

For example:

var chiplist = $("#chiplist").data("kendoChipList");
var allItems = chiplist.items(); //get all ChipList items' elements
chiplist.remove(allItems); //Remove them

Regards, Mihaela 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.

Tags
ChipList
Asked by
Richard
Top achievements
Rank 1
Answers by
Mihaela
Telerik team
Share this question
or