I see what the problem is. In order to overcome it, you could use the Data() method and pass additional data to the Read Action.
.DataSource(dataSource => dataSource
.Read(read => read.Action(
.Events(e => e.ExcelExport(
)) //attach a handler to the excelExport event
This way we will pass the isExport
flag variable to the Read Action. It will be set to true if the current request is related to the Excel export and to false otherwise.
I hope this information helps. Have a great day.
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Telerik Feedback Portal
and vote to affect the priority of the items