institut-de-genomique / Ultimate-DataTable

This AngularJS directive generate a HTML table with build-in fonctionnality like save, edit, remove, pagination etc...
http://institut-de-genomique.github.io/Ultimate-DataTable/
45 stars 26 forks source link

Export to CSV only selected rows by default #16

Closed Jenselme closed 8 years ago

Jenselme commented 8 years ago

Hi,

Currently, the export CSV button exports all rows. I think it would be better from a user experience point of view to only export the selected rows. What do you think? Is there an easy way to do this?

galbini commented 8 years ago

Hi,

This feature has designed to export all the result of a search from a server or in local. In fact, the user search some items with some filters and then export the result. With UDT you can plug easily a html form with the search function.

Your request is not simple because when a user selected a line on a page and then he go to another page we lost the previous selection. Export only the select on current page is not very interesting.

In this context, it's difficult for me to implement your request, the better way is to use search function or filter function to limit the result number.

Jenselme commented 8 years ago

OK, I just wanted to know. It is not really important and I think that filters will be enough. Thanks anyway.

dinkar2010 commented 7 years ago

add export extension to export selected { extend: 'csvHtml5', text: 'Export Selected', exportOptions: { columns: ':visible',
modifier: { selected: true
}, } select: { //multi select style: 'multi', },