4 Answers, 1 is accepted
0
Hi,
Vlad
the Telerik team
Have you checked our exporting demo? You can specify desired file name when you open the save dialog. Naming the sheet however is not supported.
Greetings,Vlad
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
0
Prithvi
Top achievements
Rank 1
answered on 13 Mar 2012, 07:52 AM
No, please give me the link for SL RadGrid export to Excel.
Thanks,
Prithvi
Thanks,
Prithvi
0
Hello,
Vlad
the Telerik team
Here is it:
http://demos.telerik.com/silverlight/#GridView/Exporting
Vlad
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
0
Prithvi
Top achievements
Rank 1
answered on 13 Mar 2012, 10:06 AM
Hi,
The code is like this:
But these changes are not reflecting in the Excel sheet
The code is like this:
public void StructureWorkspaceRadTreeView_Exporting(object sender, GridViewElementExportingEventArgs e)
{
if (e.Element == ExportElement.Cell
&& e.Value !=
null
&& e.Value.GetType() ==
this.SModel.RecordClassType)
{
e.Cancel =
true;
}
else if (e.Element == ExportElement.HeaderCell)
{
e.Background =
Colors.Blue;
e.Foreground =
Colors.Black;
e.FontSize = 50;
e.FontWeight =
FontWeights.Bold;
}
else if (e.Element == ExportElement.Cell)
{
e.Background =
Colors.Green;
e.Foreground =
Colors.Red;
}
}
But these changes are not reflecting in the Excel sheet