a.Responsive is undefined

a.Responsive is undefined

kosicielPLkosicielPL 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

Answers

  • allanallan Posts: 63,455Questions: 1Answers: 10,465 Site admin
    Answer ✓

    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

  • kosicielPLkosicielPL Posts: 3Questions: 2Answers: 0

    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 ;)

  • tangerinetangerine Posts: 3,365Questions: 39Answers: 395

    SPAM ALERT.

  • allanallan Posts: 63,455Questions: 1Answers: 10,465 Site admin

    Yup - banned and gone. Thanks @tangerine.

This discussion has been closed.