question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

dataTree replaceData

See original GitHub issue

Describe the bug replaceData() does not seem to work correctly with dataTree data.

Tabulator Info Tabulator 4.10.0

var reverseTable = new Tabulator("#reverse_tag_table", {
    ajaxURL:"/reverse_tag_table_data/list",
    dataTree: true,
    layout:"fitColumns",
    // height: "1000px",
    // pagination: "local",
    // paginationSize: 15,
    columns: [
        {title: "Link Key", field: "link_key"},
        {title: "Common", field: "common"},
        {title: "Item No", field: "p_item_no"},
        {title: "Pot Ct", field: "pot_ct"}
    ]

});

To Reproduce Steps to reproduce the behavior:

  1. Use reverseTable.replaceData(“/reverse_tag_table_data/list”, {“prj_yr”: yr})
  2. This will work the first time it is called on an open table.
  3. If it is used again on the table with new data it will not replace the data.
  4. Using reverseTable.setData(“/reverse_tag_table_data/list”, {“prj_yr”: yr}) works as expected.

Expected behavior The data should be replaced with the new data set.

Desktop (please complete the following information): openSUSE Leap 15 Firefox 60.3.0esr (64-bit)

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:8 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
aklavercommented, Nov 6, 2018

Yeah, I will get to that later.

0reactions
olifolkerdcommented, Nov 12, 2018

Im afraid that all still just works for me, sorry

Read more comments on GitHub >

github_iconTop Results From Across the Web

Is it possible to replace the data in a table that has a data tree ...
I would expect replaceData to preserve the expansion state of a data tree, much like it preserves scroll position, sorting, and filtering.
Read more >
replaceData: Replace data in an existing table in DT - Rdrr.io
Replace the data object of a table output and avoid regenerating the full table, in which case the state of the current table...
Read more >
DataTree by First American
The username you are using is currently active. This is due to a prior session not being properly logged out or another user...
Read more >
Updating Data - Tabulator
The replaceData function lets you silently replace all data in the table without updating scroll position, sort or filtering, and without triggering the ......
Read more >
Replace Data Tree Addresses with new Addresses – Grasshopper
Replace Data Tree Addresses with new Addresses. by Andrew Kudless. Apr 28, 2011. Does anyone have a solution that does not involve scripting...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found