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
close icon

How to get Selected Items value

[1] How get selecteditems value when DisplayMode is set as DelimiterMode, with No Checkbox & No Grouping
[2] When DisplayMode is set as DelimiterMode i have selected 3 items but getting text for only 2 items
[3] When DisplayMode is set as VisualItem , not able to enter text for searching.



5 Replies

KR Kannan R Syncfusion Team September 28, 2018 10:19 AM UTC

Hi Avinash, 
 
Thank you for contacting Syncfusion Support. 
 
Query 
Response 
How get selecteditems value when DisplayMode is set as DelimiterMode, with No Checkbox & No Grouping 
You can get the selected item values in the MultiSelectionComboBox by using the SelectedItems property. Please make use of the following code example. 
 
Code Example: [C#] 
 
//To get the selected items in MultiSelectionComboBox 
foreach (object obj in this.multiSelectionComboBox1.SelectedItems) 
{ 
//To add the selected item in ListBox 
listBox1.Items.Add(obj.ToString()); 
} 
 
Screenshot: 
 
 
 
 
 
 
When DisplayMode is set as DelimiterMode i have selected 3 items but getting text for only 2 items 
We have checked your query “Selected Item text not updated“ issue. But we were unable to reproduce the reported issue.  
 
Please refer the below Screenshot. 
 
 
 
Please try this above sample, Our issue reproducing scenario may differ from yours, Please get back to us with more details like issue reproducing sample or modifying the above sample to replicate the issue 
 
When DisplayMode is set as VisualItem , not able to enter text for searching. 
At present there is no support for this reported requirement in MultiSelectionComboBox. So we have considered it as feature request and it will be available from any of our upcoming release. 
 
Please try this above solution and let us know if it is helpful. 
 
Regards, 
Kannan 



AV Avinash October 7, 2018 08:29 PM UTC

[1] Can u please provide example when value & text are different ?
[2] Facing Error when typing special characters, PFA for error description





Attachment: error_1f027091.zip


KR Kannan R Syncfusion Team October 8, 2018 11:20 AM UTC

Hi Avinash, 
 
Please find the details in below.  
 
Query 
Response 
Can u please provide example when value & text are different ? 
Kindly confirm if you are referring to SelectedValue and Text property.  
 
If so, SelectedValue is based on the ValueMember  and Text is based on DisplayMember. By this way we can differentiate the Value and Text.  
 
Code Snippet : [C#] 
 
 
            this.multiSelectionComboBox1.DisplayMember = "place"; 
            this.multiSelectionComboBox1.ValueMember = "occupation"; 
 
 
Screenshot 
 
 
 
 
Facing Error when typing special characters 
This reported problem is resolved in our latest version 16.3.0.21. Please confirm us on below cases. 
 
  1. Kindly confirm us your Syncfusion Essential Studio product version.
  2. What DataSource you are using? For example like DataTable.
  3. What is special character you have used to get this problem and also confirm us the DisplayMode you are using?
 
 
Kindly guide us with more information, if we have misunderstood your query. 
 
Regards, 
Kannan 



AV Avinash October 8, 2018 11:38 AM UTC

  1. Syncfusion Essential Studio product version = 16.2.0.41 
  2. DataSource =  ObservableCollection & DataTable Both
  3. Special character =single quote(')
  4. DisplayMode = DelimiterMode


KR Kannan R Syncfusion Team October 9, 2018 11:54 AM UTC

Hi Avinash, 
 
Thank you for sharing the requested details. 
 
We are able to reproduce the problem with the provided details and so we have created an incident under you Direct-Trac for the reported issue, Please follow up with the incident for further updates
 
Regards, 
Kannan 


Loader.
Live Chat Icon For mobile
Up arrow icon