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

PDF Exports with Tables and ContentFilter

1 Answer 69 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Sergey
Top achievements
Rank 2
Sergey asked on 06 May 2010, 04:30 PM
I am using the built in PDF export functionality of RadEditor, and there's a need to have a table. I've found that because of some issues between the PDF export tool, that a filter needs to be run to add some tags, as per http://www.telerik.com/community/forums/aspnet-ajax/editor/html-to-pdf-shows-blank.aspx and http://www.telerik.com/community/forums/aspnet-ajax/editor/export-to-pdf-doc.aspx

However, when I added the JavaScript code, I get an error on the line: 
MyFilter.registerClass('MyFilter', Telerik.Web.UI.Editor.Filter); 

The error being 'Telerik is not defined'. I'm not entirely sure if there is an extra requirement to use the registerClass method. There are other Telerik controls on the page, and they do not throw any errors and work as expected without this line of code being there. 

Thanks for any suggestions. 

1 Answer, 1 is accepted

Sort by
0
Sergey
Top achievements
Rank 2
answered on 06 May 2010, 05:56 PM
And of course figured it out shortly after, the filter JS was executing before the Telerik WebResource file was fully loaded. Fixed with some jQ. 
Tags
Editor
Asked by
Sergey
Top achievements
Rank 2
Answers by
Sergey
Top achievements
Rank 2
Share this question
or