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

Error: Exporting Grid Results to HTML

3 Answers 62 Views
Grid
This is a migrated thread and some comments may be shown as answers.
smith spd
Top achievements
Rank 1
smith spd asked on 10 Jun 2010, 07:22 PM
Hello Telerik Team,

Please help me fix this issue.
I am displaying RadGrid with paging enabled.
I would like to export all the results to HTML. But coming across this issue: error.png (attached)

Error: Script control 'PageSizeComboBox' is not a registered script control. Script controls must be registered using RegisterScriptControl() before calling RegisterScriptDescriptors().
Parameter name: scriptControl

I have referred this blog but I am not able to understand how to handle this issue. Please guide me to resolve this issue.

ps: It works if I disable the Paging. I would like to have this work with paging Enabled. Thanks.

Thanks,
Smith

3 Answers, 1 is accepted

Sort by
0
Daniel
Telerik team
answered on 15 Jun 2010, 09:08 PM
Hello Smith,

I attached a sample project that demonstrates how to render RadGrid in a StringBuilder - you could use it as a staring point.

You could also try RadGrid's built-in exporting capabilities:
ExcelML export
Word/Excel export (HTML-based)

Regards,
Daniel
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Mark
Top achievements
Rank 1
answered on 25 Jun 2010, 08:44 PM
We have an app framework that has been in production for 2 years, and we have just now started getting this error as well.  Are there any further developments on this?
0
smith spd
Top achievements
Rank 1
answered on 25 Jun 2010, 09:54 PM
Hey Mark,

The HTML renders the Content of the present page and not for all pages. If you go Next page and export again, it will give the HTML content of that page.
So, rendering into HTML can be done by disabling paging or get allow paging to get HTML of that page.

Thanks,
Tags
Grid
Asked by
smith spd
Top achievements
Rank 1
Answers by
Daniel
Telerik team
Mark
Top achievements
Rank 1
smith spd
Top achievements
Rank 1
Share this question
or