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

[Solved] Insert Row in RadGrid BiffExporting

6 Answers 253 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Michael
Top achievements
Rank 2
Michael asked on 16 Aug 2012, 09:22 PM
I would like to insert one row at the top of a spreadsheet when using RadGrid1_BiffExporting, and possibly turn on filtering on the actual header column now in row 2.

How do I go about this as I cannot find any documentation on this?

I tried the following but it does not seem to do anything as I cannot find an add or insert method.

using eis = Telerik.Web.UI.ExportInfrastructure;
   
protected void RadGrid1_BiffExporting ( object sender, GridBiffExportingEventArgs e )
{
  eis.Table tbl = e.ExportStructure.Tables [ 0 ];
    
  eis.Row row = new eis.Row ( tbl );
    
  eis.Cell newCell = row.Cells [ 1, 1 ];
  
  newCell.Value = "Default text used in this cell.";
  newCell.Colspan = tbl.Columns.Count - 1;
  newCell.Style.Font.Bold = true;
  newCell.Style.Font.Size = 15;
    
  ... there is no Add()/Insert(...) method that I can find.
}

thanks in advance.

6 Answers, 1 is accepted

Sort by
0
Daniel
Telerik team
answered on 21 Aug 2012, 12:19 PM
Hello Michael,

There is no insert method in the current version of the suite, but our developers will add similar functionality for the upcoming Q3 2012 release.
As to the filtering, I'm afraid that it is not supported.
Sorry for any inconvenience caused.

Best regards,
Daniel
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Bill
Top achievements
Rank 1
answered on 01 Nov 2012, 02:25 PM
Any eta on adding insert row functionality?
0
Daniel
Telerik team
answered on 06 Nov 2012, 03:28 PM
Hello Bill,

This functionality has been planned for the next official release - Q1 2013.

Kind regards,
Daniel
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Alex
Top achievements
Rank 1
answered on 04 Mar 2013, 06:03 PM
Just downloaded the 2013.Q1 and it seems like the functionality is still not there. 
0
Daniel
Telerik team
answered on 07 Mar 2013, 01:06 PM
Hi Alex,

Test the attached demo (website) and let me know if you need further assistance.

Regards,
Daniel
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Alex
Top achievements
Rank 1
answered on 07 Mar 2013, 02:53 PM
Thanks! Just what I needed!
Tags
Grid
Asked by
Michael
Top achievements
Rank 2
Answers by
Daniel
Telerik team
Bill
Top achievements
Rank 1
Alex
Top achievements
Rank 1
Share this question
or