Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

datatables not working #336

Closed
4NG3L1337 opened this issue Aug 25, 2019 · 7 comments
Closed

datatables not working #336

4NG3L1337 opened this issue Aug 25, 2019 · 7 comments

Comments

@4NG3L1337
Copy link

In the demo page data tables works well but when i download the template from tabler.io (download button) this version don't have the css for data tables and the plugin for datatable, how i can fix this thank you!! and i love your work guys!

@pess0a
Copy link

pess0a commented Sep 14, 2019

i copied databoard.css from hosted source and pasted into my file
and then it works.

@AntonLoktionov
Copy link

please, someone share actual version of rendered html with datatables

@frdhont
Copy link

frdhont commented Mar 31, 2020

I managed to add the plugin and css from the DataTables website, however this results in the table not being generated in the tabler.io lay-out. When I add the dashboard.css from the tabler.io website, the DataTable is printed correctly, but my divs are all messed up.

Is it possible to get the DataTable css separately?

@afbora
Copy link

afbora commented May 9, 2020

Can someone say how it works for v1.0.0-alpha.7? 🤔

@DMW007
Copy link

DMW007 commented Feb 21, 2021

I'm using the server side option of DataTables so that only the currently displayed page is rendered. This works on the page load, but after I type something into the search there is a "processing" splashscreen which doesn't disapear after the data is fetched with ajax:

grafik

It seems that those problems occurs because tabler want to get rid of the dependency to jQuery. As I already wrote there I think this is a good thing, as long as it doesn't have negative effects on the features.

EDIT: It was another problem

I found out that this problem was NOT related to tabler. Instead I forgot to set the draw parameter in the output to the value of the request:

var dict = new Dictionary<string, object>() {
    { "draw", Request.Query["draw"].ToString() },
    // ...

Instead I had hardcoded set 1, which means that from the second request (the first is automatically send on page load to load the initial data) the ajax handler of jQuery.DataTables waits for a request with draw > 1 (in case of the second request it's 2). This logic was implemented in jQuery.DataTables to make sure, that responses are mapped to the corresponding requests.

@afbora
Copy link

afbora commented Mar 8, 2021

@codecalm What do you think about using List.js instead of DataTables in the new version?

GitHub Repository
https://github.com/javve/list.js

Website
https://listjs.com/

@rjd22
Copy link
Collaborator

rjd22 commented Nov 24, 2021

Closing this issue since there already is a feature request issue for Datatables #905

@rjd22 rjd22 closed this as completed Nov 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants