Open RadBinaryImage from Radgrid as a Popup

12 posts, 0 answers
  1. Anel
    Anel avatar
    3 posts
    Member since:
    Oct 2014

    Posted 28 Oct 2014 Link to this post

    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 
  2. Do Xuan
    Do Xuan avatar
    16 posts
    Member since:
    Aug 2011

    Posted 29 Oct 2014 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Do Xuan
    Do Xuan avatar
    16 posts
    Member since:
    Aug 2011

    Posted 29 Oct 2014 in reply to Do Xuan Link to this post

    Ex:
    <telerik:GridButtonColumn UniqueName="Images" ImageUrl =<%# Eval("Images") %> ButtonType="ImageButton" CommandName="Images">
    </telerik:GridButtonColumn>
  5. Anel
    Anel avatar
    3 posts
    Member since:
    Oct 2014

    Posted 30 Oct 2014 Link to this post

    Thank Ill give it a try
  6. Anel
    Anel avatar
    3 posts
    Member since:
    Oct 2014

    Posted 30 Oct 2014 Link to this post

    Thanks I'll give it a try
  7. Juergen
    Juergen avatar
    1 posts
    Member since:
    May 2014

    Posted 08 Jul 2015 in reply to Do Xuan Link to this post

    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.

  8. Konstantin Dikov
    Admin
    Konstantin Dikov avatar
    1793 posts

    Posted 13 Jul 2015 Link to this post

    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
  9. Radian
    Radian avatar
    11 posts
    Member since:
    Jul 2015

    Posted 15 Jul 2015 in reply to Konstantin Dikov Link to this post

    hi,

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

  10. Konstantin Dikov
    Admin
    Konstantin Dikov avatar
    1793 posts

    Posted 17 Jul 2015 Link to this post

    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
  11. Radian
    Radian avatar
    11 posts
    Member since:
    Jul 2015

    Posted 20 Jul 2015 Link to this post

    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;

  12. Radian
    Radian avatar
    11 posts
    Member since:
    Jul 2015

    Posted 20 Jul 2015 in reply to Radian Link to this post

    thanks,
    i want to set radtileview in sequence either horizontally or vertically.  Cn u pls tell me. 
  13. Konstantin Dikov
    Admin
    Konstantin Dikov avatar
    1793 posts

    Posted 20 Jul 2015 Link to this post

    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
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017