Giter Site home page Giter Site logo

Comments (4)

tiliv avatar tiliv commented on July 30, 2024

I'm not certain if this is part of the issue or not, but what is the blank string "" for? It wouldn't be a valid column, and I'm wondering if the main datatables.js code is failing.

The original datatables.js is very very fragile, and it will just fail without warning if anything is wrong. I can't be sure if bVisible: false is because of DatatableView or if it's breaking inside of datatables.js itself.

I'll be busy for today, but soon I'd like to set up a sample environment for making a quick test out of this kind of thing. I know it's been a few days already, so I apologize for that. If you've come up with any other details, I'd be interested to hear them.

from django-datatable-view.

tiliv avatar tiliv commented on July 30, 2024

Something else that I just thought of, since I ran into settings that didn't seem to stick:

If you're using the state-saving plugin, you'll have to clear the jquery.dataTables.js cookie from that page in order to see changes to column settings. This always gets me when I least expect it. What ends up happening is that you can print the options and everything looks fine, and then datatables appears to ignore your settings.

For reference, if you're using state-saving, you'll have a few cookies that look like this:
screen shot 2013-09-04 at 1 12 56 pm

from django-datatable-view.

tiliv avatar tiliv commented on July 30, 2024

If this happens to be the problem, note that I've recently removed the bStateSave option from defaulting to true. If you want it, later on, the process for doing so is well-documented in the dataTables.js world.

cead2b8

from django-datatable-view.

andrewshkovskii avatar andrewshkovskii commented on July 30, 2024

Sorry, i'am at vacation right now, and can't give you any good example, but i will on next week.
The empty column ("") was for column with action buttons, it not needed a name or title/header.
BTW, i tried to play with different setting in incognito mode, and also disabled saveState, disabled cookies - it all was the same. BUT, i will try it on next week again and submit my report. Thank you for response.

from django-datatable-view.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.