Hello, I am using the export to Excel as described in the docs and demo and it works perfectly when a filter is selected on any column (or multiple columns). However, if no filter is selected the app crashes with a Parse error - ParseException: Expression expected and this is related to the query filter being empty.
Fclnr.ExportController.ApplyQuery(IQueryable items, IQueryCollection query) in ExportController.cs
{
if (query != null)
{
var filter = query.ContainsKey("$filter") ? query["$filter"].ToString() : null;
if (!string.IsNullOrEmpty(filter))
{
items = items.Where(filter);
}
if (query.ContainsKey("$orderBy"))
{
items = items.OrderBy(query["$orderBy"].ToString());
}
Is there a simple way to have the filter default to ALL or something like that?
Many thanks...