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. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback
Essential JS2

Syncfusion jQuery based widgets are no longer in active development. Switch to our pure JavaScript based next generation Essential JS 2 library.

Clear selection after refresh control

Thread ID:

Created:

Updated:

Platform:

Replies:

146882 Aug 23,2019 01:06 PM UTC Aug 26,2019 11:19 AM UTC jQuery 1
loading
Tags: ejDropDownList
Juan Jose Uribe
Asked On August 23, 2019 01:06 PM UTC

Hi,

I have a dropdownlist control and I am preselecting some items, in fact all items of the dropdownlist are selected. I needed to code this:
$("#contactosCrear").on("shown.bs.modal", function (e) {
        $("#Roles").ejListBox("refresh", true);
    });
in order to get the vertical scroll bar, but after refreshing, just one item keeps selected.
I am sending images of debugging to ilustrate the behavior i am describing.

I need your supponrt to solve this, 

Kind regards,

Juan J.

Attachment: EjListBox_39a64395.zip

Ashokkumar Balasubramanian [Syncfusion]
Replied On August 26, 2019 11:19 AM UTC

Hi Juan Jose Uribe, 
 
Good day to you. 
 
We have checked your reported query to selected items of list box is not maintained after refresh. We are not able to reproduce your issue from our end. We have prepared a sample for your reference.  
 
In that sample, we have given the alert message for selected items of list box. Refer the code snippet below. 
 
  $('#myModal').on('shown.bs.modal', function (e) {  
              // Event triggered after opened bootstrap modal  
              var selectedItems = $("#listbox").data("ejListBox"); 
              alert(selectedItems.model.selectedItems); // selected items before the refresh method 
             $("#listbox").ejListBox("refresh", true);  // Refresh the listbox  
              alert(selectedItems.model.selectedItems); // selected items after the refresh method 
      }); 
 
 
If we misunderstand your reported query, can you please replicate the issue in attached sample or else share a simple sample or video to replicate your issue. This will helpful for us to reproduce your issue and resolve the issue as soon as possible. 
 
Regards, 
Ashokkumar B. 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon