Quantcast
Channel: Active questions tagged blazor - Stack Overflow
Viewing all articles
Browse latest Browse all 4839

Blazor - Render table in razor

$
0
0

I am trying to render values in a table

<MudSimpleTable Style="overflow-x: auto;" Striped="true"><tbody>    @for (int i = 0; i < place.ScheduleList.Count; i++)    {        Schedule row = place.ScheduleList[i];        if (i%2==0)        {            @:<tr>        }<td>@row.Title</td><td>@row.Time</td>        if (i%2==0)        {        @:</tr>        }    }</tbody>

but columns are not being rendered inside the rows

enter image description here


Viewing all articles
Browse latest Browse all 4839

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>