Topic: MVC5 Partial View Styles are not reapplied to a data table on Ajax refresh.

TyronSmith priority asked 1 year ago

After reloading a data table using a partial view in MVC the html loads correctly with the data table class applied.

The data table attributes however are not allied and all pagination and styles are removed?

There seems to be a lot of information on the web to reload the data table etc however none of this works with the mdb data table library?

Anyone else had this problem?

Kamila Pieńkowska staff answered 1 year ago

What framework are you using? Regardless you need to add code that will init datatable after reload. Check out how to init datatable with JS in our documentation.

Please insert min. 20 characters.


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



Specification of the issue

  • ForumUser: Priority
  • Premium support: Yes
  • Technology: MDB Standard
  • MDB Version: MDB5 6.1.0
  • Device: Laptop Browser
  • Browser: Edge
  • OS: Windows
  • Provided sample code: No
  • Provided link: No