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

Can I save state on what item is expanded ? #51

Open
hkbeer opened this issue Sep 24, 2017 · 3 comments
Open

Can I save state on what item is expanded ? #51

hkbeer opened this issue Sep 24, 2017 · 3 comments

Comments

@hkbeer
Copy link

hkbeer commented Sep 24, 2017

Can I save state on which row is expanded ?
I am using this to save config

onRefresh: function (config) {
var config_copy = JSON.parse(JSON.stringify(config));
$("#output2").text(JSON.stringify(config_copy, undefined, 2)); }

it works to save other items but it does not output which row is expanded...
is there something similar on subtotal js/renderer ?

Thanks

@nagarajanchinnasamy
Copy link
Owner

@hkbeer Sorry for the delayed response. I need to learn more about how onRefresh and config work to save state. Will get back to you.

@nirvana-msu
Copy link

It would be extremely useful to have onRefresh working properly, i.e. being triggered when any row/column expansion state changes, and having config list all node paths which are currently expanded (which uniquely describes the state of the pivot). onRefresh is not only useful to save/restore layout, but also immensely helpful when trying to implement server-side pivoting.

@flowerbot
Copy link

ok been looking more closely at this to see why refresh never works - it seems that subtotal is relying on already-saved aggregates made by the main code which aren't made again on a direct refresh, or perhaps aren't made in time - whatever the main code is doing to make the aggregates, subtotal has to re-do that on refresh and wait for the data to be aggregated first.

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

4 participants