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
Update table for dynamic data #498
Comments
jexcel(domId, options) You can save options and then use again later to recreate the table. To get options, you call xxx.getConfig() |
Sure you must clear your table first. document.getElementById('spreadsheet').innerHTML = ''; |
Actually, clearing the innerHTML and then updating the table would remove currently selected cell which from user perspective is slightly inconvenient. I was wondering if there was any method that could be called to update the table. |
There is a method to re-apply the selection.
Before destroy the table
var selection = yourtable.selectedCell;
// After you create the table (consider that on the onload method)
yourtable.updateSelectionFromCoords(selection);
…On Tue, Jul 30, 2019 at 1:40 PM Swechhya Bista ***@***.***> wrote:
Actually, clearing the innerHTML and then updating the table would remove
currently selected cell which from user perspective is slightly
inconvenient. I was wondering if there was any method that could be called
to update the table.
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
<#498>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABN5VAK3LZHJFQ2XJ44DHVLQCAZD7ANCNFSM4IH2TY2Q>
.
|
Thanks @paulhodel , that's a great solution. I was hoping if there could be a function like |
You don't need to change the whole table if you change only the data. For that you have setData. Regards, |
Hi paul, |
When I use setData to update an existing table instance, the correct number of columns and rows are rendered, but the cell contents are empty. I've tried the refresh method but same result. What am I doing wrong? |
Is there a way to update the whole table including number of rows and columns, column headers etc. for dynamic data?
The text was updated successfully, but these errors were encountered: