PHP Classes

Format data in columns

Recommend this page to a friend!

      DrasticTools  >  All threads  >  Format data in columns  >  (Un) Subscribe thread alerts  
Subject:Format data in columns
Summary:Data formatting
Messages:4
Author:badkar
Date:2009-04-09 12:14:39
Update:2009-04-13 17:22:38
 

  1. Format data in columns   Reply   Report abuse  
Picture of badkar badkar - 2009-04-09 12:14:40
Is it/will it be possible to format data in columns?

I need to make links out of name-strings. For example: I get the cat_id, cat_name, dog_id, dog_name from my database and then I want two columns sorted by name together with links like:

<a href="cat.php?cat_id=123">Cat</a>

Also I want to format dates and integers. A callback for each row to format data would be great.

  2. Re: Format data in columns   Reply   Report abuse  
Picture of dd dd - 2009-04-11 21:05:16 - In reply to message 1 from badkar
Hi badkar,

Well, it may be added in future.
The problem is of course not to display a formatted cell. That's easy.
The problem might be to decide what to do when editing such a cell.
After all, the contents of the cell might be composed of contents of multiple cells constrained by a formula.
Anyway, we'll put it on the wish list.

regards, Drasticdata

  3. Re: Format data in columns   Reply   Report abuse  
Picture of badkar badkar - 2009-04-13 11:29:24 - In reply to message 2 from dd
Actually I only wish to view data and not edit it. Do you know of any other library which is more suited only for viewing?

  4. Re: Format data in columns   Reply   Report abuse  
Picture of dd dd - 2009-04-13 17:22:38 - In reply to message 3 from badkar
I think there are many grids to be found on the internet capable of displaying data in a grid in many ways. There are only few of them that also support editing the data.
So I suppose a search on Google will do.

regards,
DrasticData