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

[Solved] Exporting

3 Answers 74 Views
Grid
This is a migrated thread and some comments may be shown as answers.
pradeep k
Top achievements
Rank 1
pradeep k asked on 17 Nov 2009, 01:41 PM
Hi All,

I am using client side exporting grid to excel, i dont want to export all the colums from grid, how can i do this.

Please help me regarding this.

3 Answers, 1 is accepted

Sort by
0
Daniel
Telerik team
answered on 17 Nov 2009, 04:55 PM
Hello Pradeep,

You could hide the unwanted columns manually:

protected void Button1_Click(object sender, EventArgs e)
{
     RadGrid1.MasterTableView.GetColumn("MyColumnName").Visible = false;
     RadGrid1.MasterTableView.ExportToExcel();
}

Kind 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
pradeep k
Top achievements
Rank 1
answered on 17 Nov 2009, 07:22 PM
Thanks for the solution, it helps me.

If we export client side, not in button click, then what to do?
0
pradeep k
Top achievements
Rank 1
answered on 18 Nov 2009, 05:26 AM
It worked for client side export too. thank you.
Tags
Grid
Asked by
pradeep k
Top achievements
Rank 1
Answers by
Daniel
Telerik team
pradeep k
Top achievements
Rank 1
Share this question
or