Per la renderizzazione delle tabelle usiamo DataTables http://www.datatables.net
IMPORTANT: DataTable column definition for order_report
- It is important to bind column definition to dataTable.
All options can be studied in http://www.datatables.net/usage/columns
- All tables defined until now in Gasista Felice retrieve data through
AJAJ calls. Server side library evaluates which fields can be ordered. In data representation we have to deal with "spurious" querySet, non clean one and some columns can not be ordered with QuerySet?.manager.order_by.
So the proposed solution is to disable sorting for columns in dataTable (by declaration of aoColumns) this let still dataTable make the AJAJ call.
Server side library will ignore columns that are not sortable. It will be our duty to develop some sorting trickery for fields not sortable by manager