DataTables / DataTables/Buttons

Buttons do not work when using DataTable with ajax

Open
#197 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
138
Forks
150
PR merge metrics
No merged PRs in 30d

Description

When initializing a DataTable using ajax and buttons at the same time, the buttons never show up on screen.

var table = $('#example').DataTable( {
    ajax: "data.json",
    buttons: ['copy', 'excel', 'pdf', 'print', 'csv']
} );

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the provided DataTable initialization with both ajax and buttons enabled, then trace how the table setup handles button controls during Ajax loading. Done means the listed buttons appear and remain usable when the table is populated from data.json.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.