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

Open RadBinaryImage from Radgrid as a Popup

11 Answers 206 Views
BinaryImage
This is a migrated thread and some comments may be shown as answers.
Anel
Top achievements
Rank 1
Anel asked on 28 Oct 2014, 09:53 AM
Hi,

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

Sort by
0
Do Xuan
Top achievements
Rank 1
answered on 30 Oct 2014, 02:28 AM
Hi Anel,
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.
0
Do Xuan
Top achievements
Rank 1
answered on 30 Oct 2014, 02:30 AM
Ex:
<telerik:GridButtonColumn UniqueName="Images" ImageUrl =<%# Eval("Images") %> ButtonType="ImageButton" CommandName="Images">
</telerik:GridButtonColumn>
0
Anel
Top achievements
Rank 1
answered on 30 Oct 2014, 09:21 AM
Thank Ill give it a try
0
Anel
Top achievements
Rank 1
answered on 30 Oct 2014, 09:22 AM
Thanks I'll give it a try
0
Juergen
Top achievements
Rank 1
answered on 08 Jul 2015, 11:28 AM

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.

0
Konstantin Dikov
Telerik team
answered on 13 Jul 2015, 08:50 AM
Hello Juergen,

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
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Radian
Top achievements
Rank 1
answered on 15 Jul 2015, 06:03 AM

hi,

     I Want to save RadImageEditor Value to mysql database in blob format after editing image. Please help me.

0
Konstantin Dikov
Telerik team
answered on 17 Jul 2015, 01:44 PM
Hello Radian,

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
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Radian
Top achievements
Rank 1
answered on 20 Jul 2015, 10:00 AM

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;

0
Radian
Top achievements
Rank 1
answered on 20 Jul 2015, 10:19 AM
thanks,
i want to set radtileview in sequence either horizontally or vertically.  Cn u pls tell me. 
0
Konstantin Dikov
Telerik team
answered on 20 Jul 2015, 10:25 AM
Hi Radian,

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
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
BinaryImage
Asked by
Anel
Top achievements
Rank 1
Answers by
Do Xuan
Top achievements
Rank 1
Anel
Top achievements
Rank 1
Juergen
Top achievements
Rank 1
Konstantin Dikov
Telerik team
Radian
Top achievements
Rank 1
Share this question
or