How to Retrieve Grid Elements using .Net Client Library
I am using the Umbraco.Heartcore.Client.Net library to retrieve content from Heartcore using the ContentDeliveryService and am wondering how to retrieve grid content.
Does the client library already contain serialization and models for grids - I haven't been able to find that in the docs?
How to Retrieve Grid Elements using .Net Client Library
I am using the Umbraco.Heartcore.Client.Net library to retrieve content from Heartcore using the ContentDeliveryService and am wondering how to retrieve grid content.
Does the client library already contain serialization and models for grids - I haven't been able to find that in the docs?
Thanks,
Jason
Hi again.
I very much doubt it, as grid editors in Heartcore differ a bit from the standard CMS - https://docs.umbraco.com/umbraco-heartcore/backoffice/grid-editors
Also, it's a fairly new feature and I can't see any PRs for it on the .net repo.
Thanks again!
I have just found this which would seem to handle grids quite nicely and can be extended to support custom grid editors:
https://github.com/skybrud/Skybrud.Umbraco.GridData/tree/v5/main
I am yet to test it out but will experiment with it today.
Jason
Unfortunately, the package I referenced is not designed to work in a headless environment.
So, when dealing with grid elements from Heartcore, what is the recommended approach for interpreting and rendering that content? Use dynamics?
I don't have an answer for this question but I can see that you've asked on the GitHub repo.
The Heartcore team should get back to you on that.
is working on a reply...