Export only checked rows

#1

Hello community,

I have a list of projects with checkbox on each reccord, I want to export only the checked lines. but it export all values every time even if i select only one.

Below In Page file (export part)

"behavior" : {
        "$ .export-csv": {
            "click": {
                "type": "EnterpriseExportCSV",
                "target": "ProjectListTabs.ProjectListView",
                "displayName": "label",
                "dataField": "field",
                "exportFileName": "Projects"
            }
        }
    }
}

And here the ListView…

ui module Enterprise {
  component ProjectsListView {
    "component": "KendoGrid",
    "title": "{~Enterprise.ProjectsListView.title~}",
    "titleUrl": "Enterprise.Projects",
    "icon": "bar-chart",
    "paginate": true,
    "checkBoxes": true,
    "preventReloadOnPageParamsChange": true,
    "data": {
        "collection" : "Enterprise.Projects"
    },
    "rowIdField": "id",
    "columns" : [
        {
      ....

Thanks

0 Likes

#2

The EnterpriseExportCSV behavior only supports exporting all the items in the grid at this time.

0 Likes