frappe / datatable

The Missing Javascript Datatable for the Web
https://frappe.io/datatable
MIT License
1.02k stars 164 forks source link

Support customize visible columns as saved layout #44

Closed szufisher closed 5 years ago

szufisher commented 6 years ago

Currently it is possible by drag and drop columns to re-arrange columns and adjust the width, also it is possible to hide or show columns, but unfortunately the changes get lost once re-open the page again. it is desired to allow saving all the customizing: column sequence, width, show or hide, sorting, filtering as saved layout, either save such layout setting as user setting persisted to backend or saved to localstorage, and remember the last setting when next time open the same page. Here the ALV(active List Viewer, the datatable equivalent) layout feature in SAP image Fig 1. Layout toolbar button

image Fig2. Layout change modal window

image Fig 3: Layout save

image Fig4. Saved Layout list

netchampfaris commented 5 years ago

@szufisher These can be implemented by the consumer of DataTable library. In fact, ERPNext's Report Builder (which uses DataTable) saves the column layout for each user.

This library aims to solve only the problem of rendering large tabular data efficiently.