Topic: Datatables and pagination
Marvin Herbold pro premium priority asked 4 years ago
Whenever someone clicks on the << or < or > or >> below the datatable to change pages, it triggers a page load. How do I stop that from happening? Up to the point of the page load, it works perfectly - I can see the new data actually is correct and rendering correctly... then the browser navigates away from the page.
Some more information: Changing the rows per page (10, 25, 50, 200) does not trigger a page load. It works great. I also have a search box as well, and that does not trigger a page load either. It is only the << < > >> buttons that triggers a page load. If we can stop that from happening, the datatable works perfectly.
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Open
- User: Pro
- Premium support: Yes
- Technology: MDB Standard
- MDB Version: 3.2.0
- Device: All
- Browser: All
- OS: All
- Provided sample code: No
- Provided link: No
Marvin Herbold pro premium priority commented 4 years ago
After thinking about it some more, I realize that the << < > >> buttons don't even specify a type. By default the button type is "submit" and of course all of this is in a form. It would be better if MD5 datatables specified the button type to be "button" for these buttons. I am going to have to write some JS hack to change the button type of these buttons.