This is a migrated thread and some comments may be shown as answers.

Change image in GridButtonColumn

2 Answers 181 Views
Grid
This is a migrated thread and some comments may be shown as answers.
m.giovani
Top achievements
Rank 1
m.giovani asked on 11 Jul 2008, 09:37 AM
Dear sirs,

How can I change the ImageUrl of an ImageButton in RadGrid according to the value of another column?
For example: if in the row 1 of the RadGrid the field in column Extension is pdf then the ImageButton in the column Download is an acrobat icon, while if in the row 2 the field in column Extension is doc then the ImageButton in the column Download is a word icon)?

Hoping I have well explained my goal, I thank you in advance
Marcello

2 Answers, 1 is accepted

Sort by
0
Accepted
Shinu
Top achievements
Rank 2
answered on 11 Jul 2008, 09:58 AM
Hi,

Here is a help article which explains about the required scenario.
Conditional image display in GridButtonColumn/GridTemplateColumn

Thanks
Shinu.



0
m.giovani
Top achievements
Rank 1
answered on 11 Jul 2008, 10:16 AM
Great Shinu

Perfect!

I didn't seen that topic in the documentation.
Thank You
Marcello

Tags
Grid
Asked by
m.giovani
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
m.giovani
Top achievements
Rank 1
Share this question
or