In my WebAssembly project I have bound a DataGrid do an IList which has been working fine, but I would prefer to use virtualization instead of paging. The example datagrid-virtualization-loaddata looks straight forward, but for me it does not compile. Is it because I don't have the data in a DbContext? How could I resolve that?
public IList<TItem> Rows { get; private set; }
public async void LoadData(LoadDataArgs args)
{
var query = Rows.AsQueryable();
if (!string.IsNullOrEmpty(args.Filter))
{
query = query.Where(args.Filter);
}
|Error|CS1503|Argument 2: cannot convert from 'string' to 'System.Func<TItem, bool>'