Welcome Guest Search | Active Topics | Sign In | Register

Can Images be placed in Grid? Options
Anand Ethiraj
Posted: Wednesday, January 6, 2010 7:10:09 AM
Rank: Newbie
Groups: Member

Joined: 1/5/2010
Posts: 6
EO Team,

Need to know the following things in Grid control.
1. Can the images like edit & Delete icon can be placed in the cell?
2. Can we place the hyperlink inside the cell?

I am eager to purchase the web control suite, if both the above functionalities are available in the grid control.

Let me know in case of any clarifications.

Waiting for your reply.

Thanks & Regards,
Anand
eo_support
Posted: Wednesday, January 6, 2010 9:38:55 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

Yes. You can do both easily. The key is every cell is HTML so you can put virtually anything inside it.

For example, if you wish to change the Edit button to an image button, you would set the EditCommandColumn's EditText property to "<img src='edit_button.gif' />".

If you wish to display image inside your cell, you can also set cell Value directly as HTML, or set the column's DataFormat as HTML with argument. For example, if your DB has the image Url, you can set your DataFormat to "<img src='{0}' />". At runtime, the Grid will replace {0} with the 'cell value' (the image Url) and then displays result HTML inside the cell, which shows you the image.

Please feel free to let us know if you have any more questions.

Thanks!
Anand Ethiraj
Posted: Wednesday, January 6, 2010 10:41:06 AM
Rank: Newbie
Groups: Member

Joined: 1/5/2010
Posts: 6
Thanks for the quick reply.

Whether can we navigate to the different page by clicking the row or Cell, if then how?

Could you please assist in this regard.

Thanks & Regards,
Anand

eo_support
Posted: Wednesday, January 6, 2010 10:45:02 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Yes. You can either use the built-in pager (which appears at the bottom of the Grid) or call the following function from anywhere you'd like (such as when a cell is clicked):

http://doc.essentialobjects.com/library/1/jsdoc.public.grid.gotopage.aspx

Thanks


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.