| View previous topic :: View next topic |
| Author |
Message |
mononoke102
Joined: 06 Aug 2008 Posts: 5
|
Posted: Fri Aug 08, 2008 4:47 pm Post subject: Structures_DataGrid posting images... (help wanted badly ) |
|
|
Hi, I am new to PEAR, and I am confused... I want to post image files to the column of the datagrid. I have successfully installed Structures_DataGrid and the grid is showing with no problem with paging and sorting working. I tried to look for some tutorial by google search and found following site: http://www.samalyse.com/code/pear/linked_grids/ still not clear...
What I want is: like ebay grid, show the thumbnail image of the products and descriptions in the next column. I also want to put hyperlink to the image.
If there is any other tutorial that explains how, it would be GREAT!
Thanks
 |
|
| Back to top |
|
 |
mark

Joined: 07 Jan 2007 Posts: 1003
|
|
| Back to top |
|
 |
mononoke102
Joined: 06 Aug 2008 Posts: 5
|
Posted: Sun Aug 10, 2008 8:53 pm Post subject: Hi Mark. |
|
|
Hi, Mark!
Thank you very much for the reply. I want to store thumbnail image into gridview. I am getting my data from array into my grid. Could you please suggest me how I can accomplish this?
Thank you.
Mayumi |
|
| Back to top |
|
 |
mark

Joined: 07 Jan 2007 Posts: 1003
|
Posted: Sun Aug 10, 2008 10:13 pm Post subject: Re: Hi Mark. |
|
|
| mononoke102 wrote: | | Thank you very much for the reply. I want to store thumbnail image into gridview. I am getting my data from array into my grid. Could you please suggest me how I can accomplish this? |
As I wrote, a column formatter is the solution. Add a column with a column formatter for the image, just like it is shown in the manual for the first column (using the "printLink" formatter). In the example a link is generated ("<a href="...">...</a>"), but the idea is the same for images. |
|
| Back to top |
|
 |
mononoke102
Joined: 06 Aug 2008 Posts: 5
|
Posted: Mon Aug 11, 2008 3:44 pm Post subject: Hi Mark! |
|
|
It worked !!!!!! Thank you very much!
I have another question, If I want to put css tags to each rows in the table what should I do? Is there way to assign tags to tables?
Thank you very much for your kind cooperations.
Sincerely,
Mayumi  |
|
| Back to top |
|
 |
mark

Joined: 07 Jan 2007 Posts: 1003
|
|
| Back to top |
|
 |
mononoke102
Joined: 06 Aug 2008 Posts: 5
|
Posted: Tue Aug 12, 2008 9:51 pm Post subject: Re: Hi Mark! |
|
|
| Thanks! |
|
| Back to top |
|
 |
|