I refer to this demo: http://demos.telerik.com/aspnet-ajax/controls/examples/integration/gridandradasyncupload/defaultcs.aspx?product=grid
I have tried so many times but i just can't seem to get this done. What I am trying to accomplish, if i use this exact demo, is that when i click on the image in that "Image" column it must popup in a window that contains the image that i clicked on but just in a larger scale so that it can be viewed better. So basically just a quick view of the selected image.
Could someone please help me on this?
Regards,
Anel
11 Answers, 1 is accepted

I would suggest changing the GridImageColumn to a GridButtonColumn with a button type of ImageButton.
you can use the RadGrid's ItemCommand event to open the RadWindow.when you click on the image column
Hope this helps.

<
telerik:GridButtonColumn
UniqueName
=
"Images"
ImageUrl =<%# Eval("Images") %> ButtonType="ImageButton" CommandName="Images">
</
telerik:GridButtonColumn
>



if I use this script, the error is:
DotNetNuke.Services.Exceptions.ModuleLoadException: Datenbindungsausdrücke werden nur für Objekte unterstützt, die ein DataBinding-Ereignis aufweisen. Telerik.Web.UI.GridButtonColumn hat kein DataBinding-Ereignis. ---> System.Web.HttpParseException: Datenbindungsausdrücke werden nur für Objekte unterstützt, die ein DataBinding-Ereignis aufweisen.
For the requirement that you have I could recommend that you take a look at the following Code Library, where you could find a way for displaying full-sized image on hover or click within RadGrid:
Hope this helps.
Best Regards,
Konstantin Dikov
Telerik

hi,
I Want to save RadImageEditor Value to mysql database in blob format after editing image. Please help me.
You can achieve the desired result by handling the server-side OnImageSaving event of the RadImageEditor, retrieve the System.Drawing.Image object from the event arguments and retrieve the binary data from it:
protected
void
RadImageEditor1_ImageSaving(
object
sender, ImageEditorSavingEventArgs e)
{
Telerik.Web.UI.ImageEditor.EditableImage img = e.Image;
System.Drawing.Image image = img.Image;
Byte[] binaryImage = imageToByteArray(image);
//your custom code for saving the binaryImage data
e.Cancel =
true
;
}
public
byte
[] imageToByteArray(System.Drawing.Image imageIn)
{
MemoryStream ms =
new
MemoryStream();
imageIn.Save(ms, System.Drawing.Imaging.ImageFormat.Gif);
return
ms.ToArray();
}
On a side note, for all sides convenience and for better tracking purposes, please post your questions in the corresponding product categories.
Regards,
Konstantin Dikov
Telerik

hii..
i m working on vs12 and mysql db.
there are 2 tables in db..imagebuy and imagebuydetail.
imagebuy contain imagebuyid,userid,imagebuydate,totalammount,banktransactionid,checkout etc
imagebuydetail contain imagebuydetailid,imagebuyid(fk of imagebuy),imageid,discountprice,subscriptionid etc.
Now i want create list<> for imagebuydetail and pass this list <> to webservice.
Create a webservice which pass all parameters of imagebuy and list<> of imagebuydetail.
[WebMethod]
public bool CommonImageBuyDetail(int userid, DateTime imagebuydate, double totalammount, int banktransactionid, string checkout,List<imagebuydetail>imagelist)
{
imagebuy ib = new imagebuy(-1, userid, Convert.ToDateTime(imagebuydate), totalammount, banktransactionid, checkout);
a = ib.Insert();
foreach (imagebuydetail imgbdid in imageList)
{
a = t.imageDetail();
}
return a;

i want to set radtileview in sequence either horizontally or vertically. Cn u pls tell me.
Please post your questions in the correct control category with detailed information about the scenario that you have and the behavior that you need to achieve. This thread is in the RadBinaryImage category and for all sides convenience it should be used for that control only.
Regards,
Konstantin Dikov
Telerik