I already found other forum threads about grids tied to a dictionary. Unfortunately all the cases are very complicated (for me), so that I have to create a new thread with a really basic case to understand.
So I have a view without a model containing a grid like this:
columns.Template(c => c.Keys.ElementAt(0).Title("Name"));
columns.Template(c => c.Values.ElementAt(0).Title("Count"));
.DataSource(dataSource => dataSource
.Read(read => read.Action("RetrieveData", "Settings"))
With this code I already can fill my grid with "data". But the rows of my grid are empty till now. But when I expect 3 datasets in my dictionary, I have 3 rows in my grid. So I think, that I'm near the solution. I think the columns.Template() functionality isn't implemented correctly. Do I have to create somethink like a template.cshtml to actually use a template? Or can I implement the "template" inline?
Can anyone help me?