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

image column in rad grid

3 Answers 131 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Michael
Top achievements
Rank 1
Michael asked on 13 Aug 2008, 06:18 PM
I have a radGrid control that is bound to a strongly-typed dataset. In addition to the columns defined in the strongly typed dataset, I also need to add an additional, unbound column. This column needs to conditionally display an image or be left blank. The condition is based upon an external webservice call.

In the ItemDataBound event for the grid, I'm calling my external webservice to determine if the image (unbound) column should display a gif or be left blank. I can't seem to figure this one out??

I've added an ImageButton to the grid at design time and set the ImageUrl property to my gif and all columns now display the gif. Now, in the ItemDataBound event, I want to conditionally remove the gif for some records, but the ImageUrl property does not seem to be available at runtime for me to set it to "" and not display the image? Any help is greatly appreciated!

Thanks,
smithy

3 Answers, 1 is accepted

Sort by
0
Michael
Top achievements
Rank 1
answered on 13 Aug 2008, 06:31 PM
Found the answer from another post on the forum!
0
m
Top achievements
Rank 1
answered on 14 Aug 2008, 03:46 PM
Could you put a link to that?
0
Michael
Top achievements
Rank 1
answered on 14 Aug 2008, 04:25 PM
I found the answer on the forums, but this article was the one that really helped:

http://www.telerik.com/community/forums/thread/b311D-bkkkhk.aspx
Tags
Grid
Asked by
Michael
Top achievements
Rank 1
Answers by
Michael
Top achievements
Rank 1
m
Top achievements
Rank 1
Share this question
or