The DataGrid offers the ability to build out your data in a grid format in an HTML table, which is the most common method due to the nature of PHP. However, the DataGrid offers many other ways of outputting the tabular data structure such as an Excel Spreadsheet or an XML document.
To use a different formatter other than the HTML Table, you can simply change the formatter by either defining the formatter in the Constructor method or by using the setFormatter method. The parameter for defining the formatter is specified by one of the formatter constants.
The following listed are the renderers that are available in the DataGrid package.
This renderer uses the PEAR::HTML_Table package to create an HTML table of the data.
This renderer uses the PEAR::Spreadsheet_Excel_Writer package to create an Excel Spreadsheet.
XUL is a language developed by the Mozilla Foundation for creating rich user-interfaces. One component of XUL is a DataGrid like structure. With this renderer you can easily add an XUL listbox to you XUL application.
Пред. | Начало | След. |
Data Sources | Уровень выше | Column Formatter |