DataGrid Export To Excel Filtered data not working

Hi,
When I'm using the Export To Excel function, everything work's fine, but it exports me all the rows of the table to Excel sheet no matter what is shown in the dataGrid.

I'm using Entity Framework Core.

how I'm telling him to export only the data shown in the datagrid that I used the @ref and not the whole table?

thanks!

Our export online demo works as expected. Check if you are passing the current filter expressions as shown in our code.

    public void Export(string type)
    {
        service.Export("OrderDetails", type, new Query() 
            { 
                OrderBy = grid.Query.OrderBy, 
                Filter = grid.Query.Filter,  // The current filter expression used by the export code
                Select = string.Join(",", grid.ColumnsCollection.Where(c => c.GetVisible() && !string.IsNullOrEmpty(c.Property))
                        .Select(c => c.Property.Contains(".") ? $"{c.Property} as {c.Property.Replace(".", "_")}" : c.Property))
            });
    }