0

I use Virtualize component like this:

<Virtualize Items="Items" Context="row">
   <Row Data="row" @key="row" />
</Virtualize>

How do I get references to current <Row> components?

I need to explicitly call refresh on them.

Liero
  • 25,216
  • 29
  • 151
  • 297

1 Answers1

0

I suppose you could do something like this:

<Virtualize Items="Items" Context="row">
    <Row Data="row" @key="row" @ref="references[row.id]" />
</Virtualize>

@code {

    IDictionary<string, ElementReference> references = new Dictionary<string, ElementReference>()
    {
        { "<first row id>", new ElementReference() },
        { "<second row id>", new ElementReference() },
        { "<third row id>", new ElementReference() },
        
        ...      
    };

}
xcopy
  • 2,248
  • 18
  • 24