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

[Solved] Export with filter hidden

2 Answers 94 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Bogice
Top achievements
Rank 1
Bogice asked on 16 Dec 2009, 04:47 PM
Hi Telerik,
How should i export a filtered grid without the filter row. If i turn AllowFilteringByColumn off and Rebind it, the grid will show all records.
Thank you

2 Answers, 1 is accepted

Sort by
0
Accepted
Daniel
Telerik team
answered on 16 Dec 2009, 05:24 PM
Hello Bogice,

You can hide the GridFilteringItem on ItemCreated. Please examine the following link:

Word/Excel export (HTML-based) (Using ItemCreated/ItemDataBound section)

protected void RadGrid1_ItemCreated(object sender, GridItemEventArgs e)
{
   if (e.Item is GridFilteringItem && isExport)
       e.Item.Visible = false;
}

Best regards,
Daniel
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.
0
Bogice
Top achievements
Rank 1
answered on 16 Dec 2009, 05:30 PM
Thank you, that works.
Tags
Grid
Asked by
Bogice
Top achievements
Rank 1
Answers by
Daniel
Telerik team
Bogice
Top achievements
Rank 1
Share this question
or