RE: [PEAR-DEV] Proposal - HTMLDataGrid
| From: | Andrew S. Nagy | Date: | Sun, 11 Jan 2004 17:19:45 +0000 |
| Subject: | RE: [PEAR-DEV] Proposal - HTMLDataGrid | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-24984@lists.php.net to get a copy of this message | ||
> This is IMO a bit too basic for a Datagrid class.
>
> A datagrid class needs a datasource. It should also use
I like this idea, and didn't really think about it. After looking at
the .net DataGrid, it would be nice to be able to tie the DataGrid to a
collections manager which can interact with PEAR::DB,
PEAR::DB_DataObject or an XML document.
I will think about this more, thanks.
> delegation to get the row values and to update the rows from
> a delegate. A datasource could be any other object providing
> the values to the datagrid on demand by responding to
> predefined methods (for example, getValue($rowIndex,
> $colIndex)). The datagrid class should only take care of
> display and customization (number of rows to be displayed,
> colors, size...).
Andrew