set check all to all drop downs

Hi,

I need set check all in a lot of drop down list. So I try simplify this code

https://help.syncfusion.com/aspnetmvc/dropdownlist/howto?cs-save-lang=1&cs-lang=js#add-check-all-option-in-popup-list

In the attach example, I remove teh check id, and all drop downs have teh same create event. In my code, I can check/uncheck Groups drop down, but only check all countries ddl, not uncheck all.

What happened?

Other better solution will be accepted ;)

Thanks



Attachment: DropDownProblem_42e25174.zip

5 Replies

PO Prince Oliver Syncfusion Team November 17, 2017 10:42 AM UTC

Hi Manolo, 

Thank you for contacting Syncfusion forums. 

We have checked your sample code. To make uncheckAll method to work properly, we suggest you to use string values in the value fields. Kindly refer to the following code  

[controller] 
    public class Countries 
    { 
        public string text { get; set; } 
        public string category { get; set; } 
        public string value { get; set; } 
        public string parentId { get; set; } 
        public string sprite { get; set; } 
        public string country { get; set; } 
        public int id { get; set; } 
        public int parent { get; set; } 
    } 

We have modified the sample, please find the sample from the following link: http://www.syncfusion.com/downloads/support/forum/134585/ze/DropDownProblem-802386460 

Regards, 
Prince 



MA Manolo November 17, 2017 01:14 PM UTC

Is there another way that the data type is not changed?

Why checkAll works and uncheckAll not?


PO Prince Oliver Syncfusion Team November 20, 2017 12:37 PM UTC

Hi Manolo, 

Thank you for your update. 

We suggest you to upgrade to our latest version, as we have addressed this issue internally and resolved it. Our Essential Studio 2017 Volume 4 Release v15.4.0.17 is rolled out and is available for download under the following link. 

Regards, 
Prince 



MA Manolo November 23, 2017 08:18 AM UTC

I've updated and it works fine.

Thanks



PO Prince Oliver Syncfusion Team November 24, 2017 04:12 AM UTC

Hi Manolo,

Most Welcome. We are glad that your issue is resolved. 
  
Regards, 
Prince 


Loader.
Up arrow icon