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

filtering with pdf

1 Answer 42 Views
Filter
This is a migrated thread and some comments may be shown as answers.
Tina
Top achievements
Rank 1
Tina asked on 28 Feb 2012, 01:11 PM
I have  a radgrid with filtering enabled.When exporting filtered text is alos exported in pdf.How to remove that text

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 28 Feb 2012, 01:18 PM
Hello Tina,

Try the following code.
C#:
protected void RadGrid1_ItemCommand(object sender, GridCommandEventArgs e)
{
 if (e.CommandName == RadGrid.ExportToPdfCommandName)
 {
  foreach (GridFilteringItem filter in RadGrid1.MasterTableView.GetItems(GridItemType.FilteringItem))
  {
   filter.Visible = false;
  }
  RadGrid1.MasterTableView.ExportToPdf();
 }
}

-Shinu.
Tags
Filter
Asked by
Tina
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or