O'Reilly logo

PHP Ajax Cookbook by R. Rajesh Jeba Anbiah, Roshan Bhattarai, Milan Sedliak

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Displaying data in a grid

In Web 2.0 sites, the term "data grid" usually means a spreadsheet-/MS Excel-like display using HTML tables. Data grids provide usability and easy access to data for users. Some common features of data grids are:

  • Ability to paginate data
  • Ability to sort columns
  • Ability to sort rows
  • Ability to quickly search or filter data fields
  • Ability to have frozen/fixed rows or headers
  • Ability to have frozen columns or headers
  • Ability to highlight any column of interest
  • Ability to load from different data sources, such as JSON, JavaScript array, DOM, and Hijax
  • Ability to export data to different formats
  • Ability to print formatted data

Getting ready

We'll require the DataTables jQuery plugin from http://datatables.net/, along with jQuery core. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required