Hi,
I have a RadGrid that support sorting and filtering. The RadGrid uses untyped dataset as datasourceWhen user finish sorting and filtering,we want generate a report using the same dataset (with the same sorting order and filter criterial). One way I can think of is pass the dataset to the reporting. But how can I get the sorted and filtered dataset from the RadGrid.
Another way I think of is pass the sorting field and directions and filter criteria to the reporting and then build the sql statement to retrieve the data for the reporting. And then how can I get the current sorted fields/directions and filtered filedsand values for the RadGrid?
I personally prefer passing the sorted and filtered datasource(dataset), This way I do not need to query the database again in the report. But I suspect that the datasource(dataset) won't change for the sorting and filtering. The sorting and filtering just affect the presentation layer (how the radgrid shows the data)., isn't it? Or I can pass the dataset and then pass the sorting parms and filtering parms then do the soriting and filtering on the report.
Any suggestion? Thanks a lot
-phelix
I have a RadGrid that support sorting and filtering. The RadGrid uses untyped dataset as datasourceWhen user finish sorting and filtering,we want generate a report using the same dataset (with the same sorting order and filter criterial). One way I can think of is pass the dataset to the reporting. But how can I get the sorted and filtered dataset from the RadGrid.
Another way I think of is pass the sorting field and directions and filter criteria to the reporting and then build the sql statement to retrieve the data for the reporting. And then how can I get the current sorted fields/directions and filtered filedsand values for the RadGrid?
I personally prefer passing the sorted and filtered datasource(dataset), This way I do not need to query the database again in the report. But I suspect that the datasource(dataset) won't change for the sorting and filtering. The sorting and filtering just affect the presentation layer (how the radgrid shows the data)., isn't it? Or I can pass the dataset and then pass the sorting parms and filtering parms then do the soriting and filtering on the report.
Any suggestion? Thanks a lot
-phelix