Detail your export documentation
On your documentation to enable export ($dg->enable_export('PDF');) you show a live example where the user can pick the format he wants to export the grid in but you don't give the code for that.
(http://phpgrid.com/example/export-datagrid-to-excel-or-html/)
I managed to recreate the code and made my own script:
Export:
<select id="export" onchange="exportfn()">
  <option value="">Pick your format</option>
  <option value="CSV">Excel</option>
  <option value="PDF">PDF</option>
  <option value="HTML">Webpage</option>
</select>
<script>
function exportfn() {
    var x = document.getElementById("export").value;
    window.location.href = './export.php?gn=Clears&export_type=' + x;
}
</script>
But it would be nicer to have it on the footer like you had it on the live example.
Could you add the code for that option on your documentation?
 Ange
    
 shared this idea
Ange
    
 shared this idea
      
    