How to populate asynchronously options to initialized materi


Topic: How to populate asynchronously options to initialized material select?

Sanches asked 5 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();
});

Sanches commented 5 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 5 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,


Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Open

Specification of the issue
  • User: 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