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

display image inside edit form

1 Answer 86 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Roukaya
Top achievements
Rank 2
Roukaya asked on 15 Dec 2012, 08:59 AM
hello all,

how to display an image (retrieved from  DB as byte[]) inside an edit form template in radgrid ??

can anyone help me ?

thanks in advance

1 Answer, 1 is accepted

Sort by
0
Jayesh Goyani
Top achievements
Rank 2
answered on 15 Dec 2012, 01:12 PM
Hello,

GridBinaryImageColumn
http://demos.telerik.com/aspnet-ajax/controls/examples/integration/raduploadinajaxifiedgrid/defaultcs.aspx?product=binaryimage

//OR

RadBinaryImage
http://demos.telerik.com/aspnet-ajax/controls/examples/integration/gridandradasyncupload/defaultcs.aspx?product=binaryimage

 DataValue='<%#Eval("YourBinaryData") %>'

DataValue='<%# Eval("YourBinaryData") == null ? null : ((Binary) Eval("YourBinaryData")).ToArray() %>'

Thanks,
Jayesh Goyani
Tags
Grid
Asked by
Roukaya
Top achievements
Rank 2
Answers by
Jayesh Goyani
Top achievements
Rank 2
Share this question
or