dataTree replaceData
See original GitHub issueDescribe 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:
- Use reverseTable.replaceData(“/reverse_tag_table_data/list”, {“prj_yr”: yr})
- This will work the first time it is called on an open table.
- If it is used again on the table with new data it will not replace the data.
- 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:
- Created 5 years ago
- Comments:8 (8 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Yeah, I will get to that later.
Im afraid that all still just works for me, sorry