Comments (4)
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.
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:
from django-datatable-view.
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.
from django-datatable-view.
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)
- Double initialization of DatatableView HOT 3
- Table not rendering - compatibility with Django 2 and Python 3? HOT 2
- Can't run in production - Ajax error HOT 1
- GenericIPAddressField HOT 1
- columns based on a queryset HOT 1
- Bootstrap 4 (or later)?
- example_project, when run " manage.py migrate", error occurs!!! HOT 3
- Django 3.1.3 support HOT 2
- ImportError: cannot import name 'get_field_definition (django 3.1.3) HOT 1
- ImportError: cannot import name 'get_datatable_structure' (django 3.1.3) HOT 2
- Unable to search or sort columns with processor but no sources HOT 3
- Performance issues with many (50-100+) x-editable columns
- pypi updates HOT 3
- Column with Foreignkey - limit_choices_to not working as intended
- Selecting rows over several pages with select all HOT 1
- Chain AND searches
- Doesnt work with AWS load balancer HOT 1
- Example Project Missing
- Cannout use distinct on get_initial_queryset()
- How to add buttons for download csv and excel
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from django-datatable-view.