wenzhixin / multiple-select

A jQuery plugin to select multiple elements with checkboxes :)
http://multiple-select.wenzhixin.net.cn
MIT License
1.91k stars 651 forks source link

big data rener fail #558

Open ZyzYyy opened 4 years ago

ZyzYyy commented 4 years ago

when i use big data ,like one group 600 item , has some problem like check all not success,and drop down is fail
i have no idea about it

prlama55 commented 2 years ago

The following piece of code works for me. styler: function (row) { if(row.selected) { $([data-key=${row._key.trim()}]).prop("checked", true); // Mark checked for selected checkbox value $([data-key=${row._key.trim()}]).closest("li").addClass("selected"); // NOT mandatory. Added class to make consistency while rendering dropdownlist } else { $([data-key=${row._key.trim()}]).prop("checked", false); // Unmark checked for selected checkbox value $([data-key=${row._key.trim()}]).closest("li").removeClass("selected"); } },