-
Notifications
You must be signed in to change notification settings - Fork 10
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
Getting Dataset From Powergrid #52
Comments
I guess its like getSelectedRow() but get all rows.. It would be very handy for exporting into svyExcel module.. |
Hi, the PowerGrid has already a feature to export data in various formats using the API elements.mypowergrid.exportData(...); would that work for you already ? Kind regards, |
Hi Paolo, |
hi, |
Hi,
I think I was trying to replicate what the old datasetGrid plugin did. It
was really useful to just retrieve the data displayed including sorting.
Powergrid includes so many available options for the user to customise,
floating filters, hiding columns etc , it would be nice to just capture the
data as they see it without having to retrieve all the column options and
build a query to replicate it.
…On Fri., 26 Jun. 2020, 7:21 pm Gabi, ***@***.***> wrote:
hi,
When you set the dataset to the grid, the component parses it, and fills
the data from it in its internal model, so it does not hold
a reference to the dataset. But all the data the grid shows, is the data
from the dataset passed, so why not just use that instead of query the
component to data, that in the end would be the same as the argument
dataset, right?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#52 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAUP7VXEKB5GSGLU74OR6DRYRSCPANCNFSM4NPEZKLA>
.
|
I don't think we can/should do this. A dataset is just a static array of rows. It is incompatible with what could be in power grid, groups, aggregates, pivoting, etc. This use case is very narrow. What specific options from svyExcelUtils do you need ? |
Another approach could be to cache the original dataset, then call getColumnState from the grid. You can parse and apply the filter, sort, columns order/visibility to the dataset |
Hi,
Is there a way to get the displayed Dataset from a powergrid, it would save running the query again to use the data somewhere else..
Something like..
elements.mypowergrid.getDataset..
The text was updated successfully, but these errors were encountered: