Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Håvard Rustad Olsen 6 posts 36 karma points
    Jul 14, 2015 @ 13:30
    HÃ¥vard Rustad Olsen
    0

    Get the image data from a grid image.

    Hi!

    I have created my own server-side rendering view for a custom grid editor and had some things that were unclear to me.

    The content of that editor is simply an image. I can get the model properties in my view, here is an example:

        {
      "value": {
        "focalPoint": {
          "left": 0.5,
          "top": 0.5
        },
        "id": 1153,
        "image": "http://kyber.blob.core.windows.net/boilerplate7-umbraco/1001/office.jpg"
      },
      "editor": {
        "name": "Image with fullscreen option",
        "alias": "fullImage",
        "view": "media",
        "render": "/App_Plugins/GridEditors/FullImageRenderer.cshtml",
        "icon": "icon-picture",
        "config": {
          "size": {
            "width": "1280",
            "height": "960"
          }
        }
      }
    }
    

    Might be something I'm not understanding, but the id value referes to the grid cell, not the content of that cell correct?

    If so, is there a IPublishedContent object for that image?

    Cheers!

Please Sign in or register to post replies

Write your reply to:

Draft