Input elements in a virtual RadzenDataGrid

Does anyone have examples of putting input elements inside a virtualized RadzenDataGrid? I wasn't able to find any examples in the docs.

I could guess how to do it, but I'm not sure how everything would interact with the paging, i.e. what happens to an input element with some input in it when you switch pages?

(For more context, I am interested in putting checkboxes in the datagrid to allow you to select a subset of elements to perform actions on)

I figured out a method of doing this that seems to work OK, if anyone is interested:

@code {
    public List<Item> Visible { get; set; } = new List<Item>();
    public async Task OnPageAsync()
    {
        Visible.Clear();
    }
}


<RadzenDataGrid Page="OnPageAsync" ...>
    <Columns>
        <RadzenDataGridColumn TItem="Item">
            <Template>
                <RadzenCheckBox .../>
                @{
                    Visible.Add(context);
                }
            </Template>
        </RadzenDataGridColumn>
        ...
    </Columns>
</RadzenDataGrid>