multiselect dropdown with checkbox

 //multi select drop down
                    var msDropdown = $('#msFromValue' + (j + 1)).data("ejDropDownList");
                  
                    var data = htmlDecode(FieldList1.lstTemp[1]);
                
                    if (msDropdown != undefined) {
                        msDropdown.option({
                            dataSource: data, 
                            fields: { text: "Text", value: "Value" },
                            delimiterChar: ";"
                        });
                    }
list in control will show '&' as text for '&' character




7 Replies 1 reply marked as answer

SS Sharon Sanchez Selvaraj Syncfusion Team May 3, 2021 11:52 AM UTC

Hi Kalpa, 
 
Thanks for contacting Syncfusion Support. 
 
We checked your query with the provided details. In the shared code snippet, we have noticed that you have used a function to decode the dataSource values. We suspect that your issue might have occurred due to that. We have created a sample here for your reference with similar properties and dataSource as per your screenshot. 
 
 
Please check the above sample and if the issue persists, share us the details on the following to assist you promptly. 
 
  1. Provide us the exact usage of your decode function.
  2. Complete code snippet of your sample.
  3. If possible, modify the above sample similar to your scenario.
  4. Are you expecting customization for any specific cases? If so, please share us the clear details on your requirement.
 
Please get back to us if you need further assistance. 
 
Regards, 
 
Sharon Sanchez S. 



PN Preethi Nesakkan Gnanadurai Syncfusion Team May 5, 2021 05:38 AM UTC

From: Kalpa Serashiya Sent: Tuesday, May 4, 2021 9:43 AM
To: Syncfusion Support <[email protected]>
Subject: Re: Syncfusion support community forum 165080, multiselect dropdown with checkbox, has been updated. 


i remove htmldecode still get same for " also get &quote  

var data = FieldList.lstTemp[1];
                      
                            if (msDropdown != undefined) {
                              
                                msDropdown.option({
                                    dataSource: data,
                                    fields: { text: "Text",value:"Value" },
                                    delimiterChar: ";",
                                    change: "onSelect",
                                    beforePopupShown: "beforePopupShown"
                                });
                            } 



KR Keerthana Rajendran Syncfusion Team May 6, 2021 06:41 AM UTC

Hi Kalpa, 
 
Sorry for the inconvenience.  
 
We tried the reported scenario of rendering quotes (“”) within text of DropDownList. We would like to let you know that the text provided in dataSource will be updated in popup list items as such and you can refer to the below sample for this behaviour.  
 
 
In the sample, we have updated the DropDownList dataSource with the below code similar to your shared code  
 
var msDropdown =  $('#skillsets').data("ejDropDownList"); 
            if (msDropdown != undefined) {                           
                                msDropdown.option({ 
                                    dataSource: data, 
                                    fields: { text: "Text",value:"Value" }, 
                                    delimiterChar: ";", 
                                    change: "onSelect", 
                                    beforePopupShown: "beforePopupShown" 
                                }); 
                            } 
 
We request you to check the above sample which contains items text similar to your scenario and if the issue persists, modify the dataSource in the above sample with exact product version to replicate the issue at our end. This will help us to serve you better. 
 
Regards, 
Keerthana.  



KR Keerthana Rajendran Syncfusion Team May 6, 2021 06:45 AM UTC

Hi Kalpa, 
 
Sorry for the inconvenience.  
 
We tried the reported scenario of rendering quotes (“”) within text of DropDownList. We would like to let you know that the text provided in dataSource will be updated in popup list items as such and you can refer to the below sample for this behaviour.  
 
 
In the sample, we have updated the DropDownList dataSource with the below code similar to your shared code  
 
var msDropdown =  $('#skillsets').data("ejDropDownList"); 
            if (msDropdown != undefined) {                           
                                msDropdown.option({ 
                                    dataSource: data, 
                                    fields: { text: "Text",value:"Value" }, 
                                    delimiterChar: ";", 
                                    change: "onSelect", 
                                    beforePopupShown: "beforePopupShown" 
                                }); 
                            } 
 
We request you to check the above sample which contains items text similar to your scenario and if the issue persists, modify the dataSource in the above sample with exact product version to replicate the issue at our end. This will help us to serve you better. 
 
Regards, 
Keerthana.  


Marked as answer

KS kalpa serashiya May 6, 2021 10:41 AM UTC

my issue get resolved 
with reference of given sample.
Thank You.


KR Keerthana Rajendran Syncfusion Team May 7, 2021 07:05 AM UTC

Hi Kalpa, 

Most welcome. We are glad that the issue has been resolved. Please get back to us if you need further assistance. 

Regards, 
Keerthana.  



KR Keerthana Rajendran Syncfusion Team May 7, 2021 07:08 AM UTC

Hi Kalpa, 

Most welcome. We are glad that the issue has been resolved. Please get back to us if you need further assistance. 

Regards, 
Keerthana.  


Loader.
Up arrow icon