We have a RadGrid that we use for search results, which we limit to the first 100 hits based on the criteria. We do this because we want to limit the load on the database, and it encourages our users to narrow down the results by adding more search criteria. However, we'd like to be able to export the entire dataset to Excel. Is there a way to run a new query when the export button is clicked and export the resulting dataset?
The way we limit the results is by adding a parameter to the stored procedure that indicates if it's a "QuickSearch" or not. If not, all records are returned. So I should be able to run the same search parameters, but change the QuickSearch to false, and that would return the entire dataset (up to 1000 records). That's what I would like to export. Is this possible? Or is there a way to set up the RadGrid paging so that it only retrieves 100 records at a time?
Thanks!
Eddie
The way we limit the results is by adding a parameter to the stored procedure that indicates if it's a "QuickSearch" or not. If not, all records are returned. So I should be able to run the same search parameters, but change the QuickSearch to false, and that would return the entire dataset (up to 1000 records). That's what I would like to export. Is this possible? Or is there a way to set up the RadGrid paging so that it only retrieves 100 records at a time?
Thanks!
Eddie