The grid editor itself doesn't store the whole media item with all of its properties, but it does store its ID so you can use an Umbraco Helper to get the media item.
First Replace @model dynamic with the following, then you can get the media item and its properties.
How to retrieve MediaType custom PropertyValue from within Grid Editor template
Hi there,
I wondered wether someone could point out how to access a custom PropertyValue of a MediaType (Image):
from within Grid Editor template:
}
The grid editor itself doesn't store the whole media item with all of its properties, but it does store its ID so you can use an Umbraco Helper to get the media item.
First Replace
@model dynamic
with the following, then you can get the media item and its properties.Hi Jason,
thank you very much. Works perfekt!
cheers
is working on a reply...