Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
I am trying to output a data grid to my razor template, I can render the table just fine as a macrosript but I would very much like to render it in my template as is in MVC scheme and not to use a macro for it.
the macro code:
@using umbraco.MacroEngines @inherits umbraco.MacroEngines.DynamicNodeContext @{ <table> <tr> <th>Date</th> <th>Serial</th> </tr> @foreach (var row in Model.serialNumbersTable) { <tr> <td>@row.issueDate</td> <td>@row.serialNumber</td> </tr> } </table> }
I am using umbraco version 6.1.6
Any ideas? is it possible?
Got it using currentPage
<table> <tr> <th>@Umbraco.GetDictionaryValue("IssueDate")</th> <th>@Umbraco.GetDictionaryValue("ExpireDate")</th> <th>@Umbraco.GetDictionaryValue("SerialNumber")</th> </tr> @foreach (var row in CurrentPage.serialNumbersTable) { <tr> <td>@row.serialNumber</td> <td>@row.issueDate</td> <td>@row.expireDate</td> </tr> } </table>
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.
Continue discussion
uComponents 6.0 Data grid
I am trying to output a data grid to my razor template, I can render the table just fine as a macrosript but I would very much like to render it in my template as is in MVC scheme and not to use a macro for it.
the macro code:
I am using umbraco version 6.1.6
Any ideas? is it possible?
Got it using currentPage
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.