Hi Everyone,
New to C# and Radzen. Need some help in exporting the data grid view to Excel. I have a page where I called from another page passing a parameter associate id. then I used this id to filter my data view. Please see my FilterValue="associateId" below.
This one works perfectly when I go to the page and also works when I do search and clearing the search. However, when I run the export to Excel or CSV, I always get ALL RECORDS including Associate ID not equal to the parameter that the page received.
{
Filter = $@"{(string.IsNullOrEmpty(grid0.Query.Filter)? "true" : grid0.Query.Filter)}",
OrderBy = $"{grid0.Query.OrderBy}",
Expand = "Associate,LookupAssociateType,Facility,LookupJobDescription",
Select = string.Join(",", grid0.ColumnsCollection.Where(c => c.GetVisible()).Select(c => c.Property))
}, "AssociateFacilities");
}
}
However, my initial filter value on AssociateId is not being considered it seems. However, I am seeing it in the filter.