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

Display Row Number with Blazor Virtualize Component

$
0
0

I am using the Blazor virtualize component with asp.net core 5.x to display a grid of data. I want to display the row number. I am not sure if this component supports this functionality.

Item Name  1    Fred  2    Bob  3    Craig

I tried adding a coutner variable but this did not work. The variable is alway 0.

<Virtualize Context="donationRequest" ItemsProvider="@LoadRequests"><ItemContent>            @Counter++<tr><td>                    @Counter</td><td>                    donationRequest.Name</td></ItemContent><Placeholder><p>                Loading...</p></Placeholder></Virtualize>

Viewing all articles
Browse latest Browse all 4839

Trending Articles



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