After reselecting different values again in multiselect dropdown,it is removing others which is previously selected

i ve a multislect dropdown. It works for the first time when a select different values but if again i select other then it is keeping only the newly selected item. what to do so that i can get all the ids which is selected.
as u can see in selected indices it has 3 items whereas in selecteditemsid it has only one


1 Reply

IB Ilakkiya Baskar Syncfusion Team May 21, 2018 12:00 PM UTC

Hi Raj Kumar, 
Thank you for contacting Syncfusion Support. We suggest you to use getSelectedValue() method to get the value of the selected items in the DropDownList component. The _selectedItemsID is private variable which is cleared after some process in the source. Please refer the code block below, 
var target = $('#bookSelect').data("ejDropDownList"); 
target.getSelectedValue(); 

Let us know, if there is any concern. We will be happy to assist you. 

Regards 
Ilakkiya B 


Loader.
Up arrow icon