This is a migrated thread and some comments may be shown as answers.

How to binding object, when the one of the properties is a list of other objects?

1 Answer 29 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Caio
Top achievements
Rank 1
Caio asked on 06 Nov 2012, 05:36 PM
I have an object with some properties that will appear in the grid, but one of the properties is a list that will generate other columns. Its doing this?

Thanks

1 Answer, 1 is accepted

Sort by
0
Caio
Top achievements
Rank 1
answered on 06 Nov 2012, 06:45 PM
.columns.Bound(p => p.Meses).ClientTemplate("<table><tr>"+
 "<# for (var i = 0; i < Meses.length; i++) {" +
 "#><td><#= Meses[i].Quantidade #></td>  <#" +
 "} #>"+
 "</tr></table>");


but it is not a perfect solution
Tags
Grid
Asked by
Caio
Top achievements
Rank 1
Answers by
Caio
Top achievements
Rank 1
Share this question
or