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. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

[JS ES5] Prevent Chip (single selection) with no value (selected = false)

Thread ID:





149228 Nov 19,2019 01:03 PM UTC Nov 20,2019 11:51 AM UTC JavaScript - EJ 2 1
Tags: Chip
Asked On November 19, 2019 01:03 PM UTC

Hi, how can I prevent a ChipsList (single selection) with no value? The component has a default value and the user needs to choose an option (like radio button), the problem is that he can unselect an option when click on the same option, how can I prevent it (cancel)?

This documentation about this component has few informations....

Keerthana Rajendran [Syncfusion]
Replied On November 20, 2019 11:51 AM UTC

Hi Lucas, 
Greetings from Syncfusion support. 
We have analyzed your requirement for select and unselect. By default, the selected item will get deselected during click, it is the usual behavior of chip component. We would like to let you know that, EJ2 ButtonGroup component will meet your exact requirement. Since, the group button has  single selection and multi selection mode. During single selection, minimum one value is maintained in selected state (as like radio button group). In MultiSelection mode, you will be able to select more than one value (as like checkbox group). 
To know more about the ButtonGroup, refer the below link. 
Please let us know, if you have any concerns. 


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