When I'm retirieving data from content nodes, this works:
@foreach(var line in @Model.schedule){ @line.time; @line.activity; }
But when I try the same with a Media item that uses the datagrid datatype, it all ends up as one long string without even a char to separate one line from the next... Is the datagrid just not compatible with Media types or can I get the data some other way? Or need modity the script so can use with string.Split() easily?
Datatype grid not compatible with Media types??
When I'm retirieving data from content nodes, this works:
@foreach(var line in @Model.schedule){ @line.time; @line.activity; }
But when I try the same with a Media item that uses the datagrid datatype, it all ends up as one long string without even a char to separate one line from the next... Is the datagrid just not compatible with Media types or can I get the data some other way? Or need modity the script so can use with string.Split() easily?
(umbraco v 4.11.8)
is working on a reply...