Get prevalue for value/id in dropdownlist used in a grid component
I'm using Umbraco grid (with leblender). Several of my Grid Components have a dropdownlist with several options. My problem is that all I can seem to get my hands on is the ID of the selected dropdown value, and not the actual value itself.
If i know that one grid component has selected a value corresponding to the ID "54", is there a way to find out what that means?
Note that I'm not rendering the grid the "normal" way. I'm currently reading the full grid JSON data which is stored on the content node, and passing a modified JSON to a react component which will render the grid.
An example of what I'm trying to do:
var optionId = (int)gridControlValue.First["dimensions"]?["value"];
/* This is where I'm stuck */
var option = SomehowGetPreValueFromId(optionId);
Get prevalue for value/id in dropdownlist used in a grid component
I'm using Umbraco grid (with leblender). Several of my Grid Components have a dropdownlist with several options. My problem is that all I can seem to get my hands on is the ID of the selected dropdown value, and not the actual value itself.
If i know that one grid component has selected a value corresponding to the ID "54", is there a way to find out what that means?
Note that I'm not rendering the grid the "normal" way. I'm currently reading the full grid JSON data which is stored on the content node, and passing a modified JSON to a react component which will render the grid.
An example of what I'm trying to do:
Do you mean @Umbraco.GetPrevalueAsString(...) ?
is working on a reply...