Topic: How to populate asynchronously options to initialized material select?
Sanches free asked 4 years ago
Hi! I'm having difficulty with material select (page is freezing while initializing material selects) in MDB PRO 4.11 while initializing dozen of material selects in my page. Needless to say that some selects have about 10 thousand OPTIONS in it. Is there any way to initialize material selects without page not freezing while loading options asynchronously?
$(document).ready(function() {
$('.mdb-select').materialSelect();
});
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Opened
- ForumUser: Free
- Premium support: No
- Technology: MDB jQuery
- MDB Version: 4.11.0
- Device: Desktop
- Browser: Firefox
- OS: Windows 10
- Provided sample code: No
- Provided link: No
Sanches free commented 4 years ago
Shame on developers! From 4.7.8 version you have bugy material select. I want to populate select dynamically but I've figured out that after materialSelect({destroy: true}); it destroys layout because it's removing layout parent besides div.select-wrapper. WHAT A SHAME! And people are paying for them!
Mateusz Łubianka staff commented 4 years ago
Hi @Sanches,
We have a task on our list regarding freezing select when it has a large number of options. Our team will fix this as soon as possible. I apologize for all the inconvenience.
Best,