filtering with pdf

2 posts, 0 answers
  1. Tina
    Tina avatar
    130 posts
    Member since:
    Jul 2011

    Posted 28 Feb 2012 Link to this post

    I have  a radgrid with filtering enabled.When exporting filtered text is alos exported in pdf.How to remove that text
  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 28 Feb 2012 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top