We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Duplicating items with multiple chiplists

Thread ID:

Created:

Updated:

Platform:

Replies:

145712 Jul 4,2019 08:49 PM UTC Jul 5,2019 01:51 PM UTC JavaScript - EJ 2 1
loading
Tags: Chip
Matias Puzanowski
Asked On July 4, 2019 08:49 PM UTC

Hello Syncfusion Team,

I'm trying to use ChipList control on , but I would need to use 7 chiplists, each representing a weekday.

On the example below, I added chips only to first list, but upon refreshing, the items are added on each list. How can I prevent this behaviour?

Thanks in advance.



Christopher Issac Sunder K [Syncfusion]
Replied On July 5, 2019 01:51 PM UTC

Hi Matias, 

Greetings from Syncfusion support. 

We have checked the provided code sample and we were able to reproduce the issue at our end.  To get rid of this issue, we need to declare the chips property with empty array. Here is code for your reference, 

/** * Default Chip sample **/ 
var chipsLunes = new ChipList({ "enableDelete": true, chips: [] }); 
chipsLunes.appendTo("#chip-lunes"); 
 
var chipsMartes = new ChipList({ "enableDelete": true, chips: [] }); 
chipsMartes.appendTo("#chip-martes"); 
 
var chipsMiercoles = new ChipList({ "enableDelete": true, chips: [] }); 
chipsMiercoles.appendTo("#chip-miercoles"); 
 
chipsLunes.add("prueba1"); 
 
chipsMartes.refresh(); 
chipsMiercoles.refresh(); 

We have prepared a sample for your reference. Please find it from the below link, 

Please check with the provided details and get back to us if you require any further assistance. 

Thanks,
Christo 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon