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

convert to radgrid to html

1 Answer 101 Views
Grid
This is a migrated thread and some comments may be shown as answers.
JJ
Top achievements
Rank 1
JJ asked on 04 May 2012, 05:52 PM
I need to convert radgrid which has detail tables to html and send by email.

HtmlTextWriter

 

 

a = null; ;

 

rg.RenderControl(a);


does not work ( looked at http://gchandra.wordpress.com/2006/08/23/export-datagrid-to-html/)
error: rg is not a registered sctript control...script controls must be registerd using registerscriptcontrol() before calling registerscriptDescription()...

Can you send some working sample for convert radgrid to html text.
or some sample code for looping grid master and detail table  to get out put html text.

Please help!!!

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 07 May 2012, 01:33 PM
Hi,

Try setting RegisterWithScriptManager property for RadGrid for ASP.NET AJAX to false in order to avoid the exception . Note, however, that when you set this property to false, you will need to register the grid's client scripts and skins manually with your own code.

Thanks,
Shinu.
Tags
Grid
Asked by
JJ
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or