I have a Model which I bind to:
@(Html.Kendo().Grid(Model.AccountSummary.ClientAccountSummaries)
I am trying to add all the Account Currencies for each Client into a each cell.
columns.Bound(e => e.Client).Template(@<text>
@foreach (var account in item.Client.Accounts)
{
Html.Raw(account.Currency);
<br/>
}
</text>)
.Title("Type");
The code compiles and the objects are correct, but grid shows [object object] instead of "CDN<br>USD<br>EUR" in each cell. See image.
What am I missing here?
@(Html.Kendo().Grid(Model.AccountSummary.ClientAccountSummaries)
I am trying to add all the Account Currencies for each Client into a each cell.
columns.Bound(e => e.Client).Template(@<text>
@foreach (var account in item.Client.Accounts)
{
Html.Raw(account.Currency);
<br/>
}
</text>)
.Title("Type");
The code compiles and the objects are correct, but grid shows [object object] instead of "CDN<br>USD<br>EUR" in each cell. See image.
What am I missing here?