This is a migrated thread and some comments may be shown as answers.

[Solved] Apply Filter for export only

1 Answer 94 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Adam Lindsay
Top achievements
Rank 1
Adam Lindsay asked on 11 Nov 2009, 12:00 AM
I need to export a subset of documents from a grid.  Here is the flow:

1. User Clicks export
2. A popup window displays with date fields (To and From)
3. User populates fields and clicks "Go"
4. Only the rows within the user entered dates are exported
5.  The grid on the screen is unchanged

I don't want to filter the grid on the screen.  I would like to apply the filter only in the code behind while filtering. Is this possible?

Thanks.

- Adam L

1 Answer, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 16 Nov 2009, 11:51 AM
Hello Adam,

In order to achieve the desired functionality you can use the ExportButton_Click event to specify an initial filter. Note that after setting the FilterExpression property of the MasterTableView, you must rebind the grid:
For more information, please refer to the following help article:
http://www.telerik.com/help/aspnet-ajax/grdapplyingdefaultfilteroninitialload.html

All the best,
Pavlina
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Grid
Asked by
Adam Lindsay
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
Share this question
or