js-multiselect-selected values on top do not get clear also array getting duplicated

Hi,

I am struggling with  multiselect here is my html code

 <ejs-multiselect id="ejsDivisionMultiSelect" mode="CheckBox" showSelectAll="true" selectAllText="Select All" unSelectAllText="Un-select All"
                                     placeholder="Select one or more divisions" enablePersistence="true" dataSource="@ViewBag.Divisions">
                        <e-multiselect-fields text="DivisionName" value="DivisionId"></e-multiselect-fields>
                    </ejs-multiselect>

I am able to load control also i am able to clear control selected checkbox but selected values on top do not get clear here is my JS code

  var ejDivisionAccessObj = document.getElementById("ejsDivisionMultiSelect").ej2_instances[0];
    ejDivisionAccessObj.selectAll(false)
    ejDivisionAccessObj.refresh()

also i check and uncheck checkboxes that way selection get duplicated and pushing duplicate array items to the server, please provide me solution?

Thanks
Farhan  

3 Replies

KV Karthikeyan Viswanathan Syncfusion Team September 3, 2018 09:51 AM UTC

Hi Farhan, 
 
Thanks for contacting Syncfusion support. 
 
We have prepared a sample based on your share code example. But, we were unable to find out the exact root cause of this issue. The selected items is removed when call selectAll(false) public method.  
 

Still, you have an issue then please share the below details. It will help us to provide a solution at earlier. 

  • Share the shared sample as issue reproducible one.
  • Share the issue reproducing sample if possible.
  • Share the code snippet which will help to reproduce this issue.
  • Share the package and version details which has used in your application.
 
Regards, 
Karthikeyan V.  



FS Farhan Syed September 4, 2018 07:45 PM UTC

still i am noticing selected values are getting duplicated not sure the version we are using have issue

our Syncfusion Version is: version : 16.1.0.37

Please let me know

Thanks
Farhan


KV Karthikeyan Viswanathan Syncfusion Team September 5, 2018 10:48 AM UTC

Hi Farhan, 
 
Based on your shared details, we suspect that the issue is raised due to lower version of Syncfusion packages. So, we suggest to upgrade the latest version of Syncfusion packages to resolve this issue.  
We have prepared a sample in 16.1.37 version. But, we were unable to find out the exact root cause of this issue. 
 

Still, you have an issue. Then please share the below details. It will help us to provide a solution at earlier.  

  • Share the shared sample as issue reproducible one.
  • Share the issue reproducing sample if possible.
  • Share the code snippet which will help to reproduce this issue.
 
 
Regards, 
Karthikeyan V.  


Loader.
Up arrow icon