a.Responsive is undefined
a.Responsive is undefined
kosicielPL
Posts: 3Questions: 2Answers: 0
I have a problem with loading datatables js files to my ASP .NET MVC project. I need datatables with bootstrap 4 and responsive plug-ins.
- I've downloaded datatables from nuget (latest stable for nuget -> v1.10.15)
- I've bundled required file as shown below
As a result I got error: "a.Responsive is undefined". I tried also to load these three files in different order but none of them doesn't seem to work correctly.
What am I doing wrong? How to fix this?
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
Looks like you need to include the
dataTables.responsive.min.js
file as well (after DataTables, but before the Bootstrap theming for Responsive).The download builder is a useful way of getting all the files you need in the right order.
Allan
It works! Thank you!
PS Download builder was just an emergency option. Everything should be always downloaded and bundled from NuGet if only possible, to not mess with DevOps guys
SPAM ALERT.
Yup - banned and gone. Thanks @tangerine.