Closed jmpangilinan closed 2 years ago
I have temporarily fixed this by modifying line 113 on kv-export-data.js
from:
frmConfig = $.extend(true, {}, cfg.formOptions, { action: window.location.href, target: cfg.target, method: 'post', css: {display: 'none'} });
to:
var $grid = $('#' + cfg.colSelId).parents('div[data-pjax-container]:first'); var filters = $.param($grid.find('tr.filters:first').find('[name]').serializeArray()); frmConfig = $.extend(true, {}, cfg.formOptions, { action: window.location.href.split(/[?#]/)[0] + '?' + filters, target: cfg.target, method: 'post', css: {display: 'none'} });
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Prerequisites
master
branch of yii2-export.Steps to reproduce the issue
enablePushState
to false on gridviewpjaxSettings
Expected behavior and actual behavior
When I follow those steps, it exported all rows
I was expecting to export the filter rows on the grid view
Environment
Browsers
Operating System
Libraries