How to Bind the Multiselect List from Db.

I am getting the multi-select value and storing to the database. When in the edit mode, I need to show the multi-select values in the drop-down. Am storing the values with comma separated values. How to display these values in the multi-select drop-down.

1 Reply

KV Karthikeyan Viswanathan Syncfusion Team September 12, 2018 12:14 PM UTC

Hi Sarvana, 
 
Thanks for contacting Syncfusion support. 
 
We have prepared a sample in angular for saving and retrieving data using the angular service. To display the values, you need to use the value property and assign the values as string array or number array. Kindly refer to te following UG link: https://ej2.syncfusion.com/angular/documentation/multi-select/api-multiSelectComponent.html#value  

To remove all selected items you can enable close icon using the showClearButton property. This is automatically remove all the selected items when the close button is clicked, kindly refer to the following UG link: https://ej2.syncfusion.com/angular/documentation/multi-select/api-multiSelectComponent.html#showclearbutton  


Regards, 
Karthikeyan V. 


Loader.
Up arrow icon