Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
210
Export Selected Rows
posted

Is there an option to export selected rows? I need to be able to do this with paging/sorting/filtering set to Remote and with no primary key defined on the grid.

Parents
No Data
Reply
  • 16310
    Offline posted

    Hi Julie,

    By default the igGridExcelExporter is working with the grid data available on the client. If you want to export only the selected rows, you will need to handle this manually. This can be done in the exportStarting event, where to pass a data object containing only the selected rows records:

                        $.ig.GridExcelExporter.exportGrid($("#report-grid"), {
                            fileName: "igGrid",
                            gridFeatureOptions: { "sorting": "applied" },
                        },
                        {
                            exportStarting: function (args) {
                                 // pass the data object containing only the selected rows records
                                 args._gridData = newData;
                            }
                        });

    If you need help on how to retrieve only the selected rows data, please let me know what is the data source for the grid and I will be able to provide assistance.

Children