4 Answers, 1 is accepted
0
Shinu
Top achievements
Rank 2
answered on 18 Mar 2009, 04:19 AM
Hi,
I think Template column will give you the power to customize the image displaying in radgrid.
ASPX:
Thanks
Shinu.
I think Template column will give you the power to customize the image displaying in radgrid.
ASPX:
<telerik:GridTemplateColumn HeaderText="Photo" UniqueName="TemplateColumn" > |
<ItemTemplate> |
<asp:Image ID="ProductImage" runat="server" Width="100%" ImageUrl='<%# (Eval("Name") is System.DBNull)? "Img/ImageNotAvailable.gif" : "Img/" + Eval("Name") %>' |
AlternateText="No preview available" /> |
</ItemTemplate> |
</telerik:GridTemplateColumn> |
Thanks
Shinu.
0
HsuKang
Top achievements
Rank 1
answered on 18 Mar 2009, 06:30 AM
Hi Shinu,
Thank you for your response. Maybe your suggestion will wok perfectly, yet you are supposed to admit that it is really harder to show images in RadGrid than GridView. What a shame!
HsuKang
Thank you for your response. Maybe your suggestion will wok perfectly, yet you are supposed to admit that it is really harder to show images in RadGrid than GridView. What a shame!
HsuKang
0
Accepted
Hi HsuKang,
We will add a an image column to RadGrid in one of our next releases.
Kind regards,
Dimo
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
We will add a an image column to RadGrid in one of our next releases.
Kind regards,
Dimo
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
HsuKang
Top achievements
Rank 1
answered on 19 Mar 2009, 01:40 PM
Hi Dimo,
It is a good news. Thank you very much for accepting my suggestion.
HsuKang
It is a good news. Thank you very much for accepting my suggestion.
HsuKang