Topic: Problem with search in datatable
I want to add a datatable to a tab content with search input but the search doesn't work.
I add this code: https://mdbootstrap.com/snippets/standard/derlino/2887512#html-tab-view
Do you know why I have problems with that? The normal datatable functions work well but javascript seems to make problems
Grzegorz Bujański
staff answered 1 months ago
In your code you refer to an element with id = datatable, but in html you do not have such an element. There is only an element with a datatable class.
DerLino pro priority commented 1 months ago
Ah I'm lost :D Thank you for this. But now I've the next problem.
1. The search datatable with round about 50.000 data entries is really slow if want to search something. Is there something that I could do if I have much data?
2. If I search f.e. "3875", than ther're entries with the number "903" f.e. Here the example: https://www.directupload.net/file/d/6106/6odnjnmz_png.htm
Grzegorz Bujański staff commented 4 weeks ago
That's actually a lot of data. In this situation, you should consider loading data asynchronously. Similarly, with search, it should then be handled asynchronously. Unfortunately, datatable does not have a built-in option that will enable this.
Answered
- User: Pro
- Premium support: No
- Technology: MDB 5
- MDB Version: 3.2.0
- Device: PC
- Browser: Firefox
- OS: Windows 10
- Provided sample code: No
- Provided link: Yes
- 1
- Search