Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
254 views
Hi,
I am using RadEditor control on my web page. I'm using HTML file as a template to fill in sections of data from database and then display data to user in Editor. I want to allow user to save this data as PDF file but unfortunately, I'm having trouble to save this data to export to PDF file using ExportToPdf() method of RadEditor.

Here is a Code:
<form id="form1" runat="server">
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
    </telerik:RadScriptManager>
    <table border="0" cellpadding="0" cellspacing="0" width="100%">
        <tr>
            <td>
             <telerik:RadEditor ID="fileEditor" ContentFilters="DefaultFilters,PdfExportFilter" Height="500" 
                        Width="685" runat="server" ToolsFile="~/HtmlEditorTools.xml" OnExportContent="fileEditor_ExportContent" >
                    <ExportSettings FileName="abc" OpenInNewWindow="true"></ExportSettings>
                </telerik:RadEditor>
            </td>
        </tr>
        <tr>
            <td>
                <asp:Button ID="btnSavePDF" runat="server" Text="Save As PDF" OnClick="btnSavePDF_Click" />
            </td>
        </tr>
    </table>
    </form>

code behind:
 
protected void btnSavePDF_Click(object sender, EventArgs e)
{

fileEditor.ExportToPdf();
}

HTML Template:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<head>
    <title></title>
</head>
<body>
    <h1>Product Service Detail</h1>
    Hi [%=Customer.FirstName%] [%=Customer.LastName%],
        <br />
        I hope you are fine.
        <br />
      Please Note Your Product Services:
    <br />
    [%=ProductServices%]
         
        Thanks,
        <br />
        Best Regards,
        <br />
        [%=ProductManager.FullName%]
         
</body>
</html>

In my code, I fill the data from the database for the sections [%=.....%]. While calling method ExportToPdf() I gets this exception:
Invalid XHTML. RadEditor content should be correct XHTML in order to export to PDF. Parse error: Unexpected DTD declaration. Line 674, position 13. at line: <body><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

Any help for this ?

Thanks

Rumen
Telerik team
 answered on 14 Dec 2011
0 answers
77 views
Hi,
I have a radgrid with both functionality drag and drop rows and sorting by columns (enable sorting for the radgrid) , it works well on the default state and when i click on any column's header to sort , the drag and drop stops. Please inform me.

Mohamed Farrag
Web developer
Mohamed
Top achievements
Rank 1
 asked on 14 Dec 2011
1 answer
129 views
Before RadStyleSheetManager we have used Ajax Minifier solution (http://ajaxmin.codeplex.com/), that was able to remove comments from CSS files. Is there any way to do this with RadStyleSheetManager?
It is useful as 1) allows to add "developer/company specific" comments, as users can never see them 2) reduce size a little bit
Simon
Telerik team
 answered on 14 Dec 2011
2 answers
84 views
HI,
i'm using telerik radcombobox inside rad grid and  it keeps throwing me "stop running this script". This happens whenever I select  the item from the  radcombobox or while typing and  changing on the  radcombobox in edit mode.
Tushar
Top achievements
Rank 1
 answered on 14 Dec 2011
3 answers
200 views
hi, i m new in telerik and c#, now i m trying to learn multi tier architecture with telerik tools...
i try to did some research to find some tutorial but it was not useful...like if i want to bind to radscheduler fields, is it write like something "RadScheduler.DataKeyField = "id"" or "RadScheduler.DataBind();" in the default c# UI page? And the select data connectionstring is write on business logic page right? if have any tutorial or any sample can help me pls give me a link, thx...    
Peter
Telerik team
 answered on 14 Dec 2011
2 answers
156 views
I'm using the RadEditor Telerik control and am running into an error trying to add the spellcheck editor tool.  Below is a snippet of my code:
<telerik:RadEditor runat="server" ID="ContentEditor" Height="200px" Width="540px" EnableResize="false" EditModes="Design"><CssFiles><telerik:EditorCssFile Value="~/CSS/EditorContentAreaStyles.css"/></CssFiles>
<Tools><telerik:EditorToolGroup>
<telerik:EditorTool Name="AjaxSpellCheck" Text="Spellchecker" Enabled="true" />
</telerik:EditorToolGroup></Tools>
<Languages>
<telerik:SpellCheckerLanguage Code="en-US" Title="English" />
</Languages>
</telerik:RadEditor>
I have added the following to my web config:
<httpHandlers>
<add path="Telerik.Web.UI.SpellCheckHandler.axd" verb="*" type="Telerik.Web.UI.SpellCheckHandler, Telerik.Web.UI" validate="false"  />
<add path="Telerik.Web.UI.WebResource.axd" verb="*" type="Telerik.Web.UI.WebResource, Telerik.Web.UI" validate="false" />
</httpHandlers>

I am getting the Spell Check Handler Server Error: 500 (see image below).  I have also attached an image showing that the dictionary file is inside the App_Data/RadSpell folder.  Any idea why i'm getting this error or how to fix it?  

Thanks again for the help,
-  Pat
Princy
Top achievements
Rank 2
 answered on 14 Dec 2011
0 answers
84 views
Hi,
i have a page having 4 expandable radgrid showing data from different datasource but in my aspx page it appears like 1 single radgrid. now i want to export record in 1 excel workbook and in the  same excel sheet, all grid record should come one after another with Grid name as caption. i am using visual studio 2010 and laungaue is c#. I have tried almost all the stuff that is avaiable on google and telerik support site.

When try to export the record directly without expanding the record it works fine but as soon as i expand the record, all goes wrong.

Please suggest how to implement this.
Anand
Top achievements
Rank 1
 asked on 14 Dec 2011
13 answers
249 views
I'd previously created my own custom control to pull events from our Exchange server and display them on my employer's intranet website.  I really like the day, week, month, and timeline views of the RadScheduler, but there are (just a few) cases where my own view does a better job of showing upcoming events and event details.

I'd love it if there were a way to create a custom view to plug into the RadScheduler so I could the best of both worlds.  Alternatively, if I could add another View Tab to the header, I'd be content to hide everything but the header and display my own control, wired to make use the properties of the RadScheduler control.
Peter
Telerik team
 answered on 14 Dec 2011
1 answer
95 views
A have a 2 radcombox, 1 with data from datasource (rd1), and the second (rd2) with data transferred from rd1

This two controls are in a asp:panel with many controls which is updated by a button via AjaxUpdatedControl...that good

A have another asp:panel with many controls which is updated by a button (bt2) via AjaxUpdatedControl
When I fired this bt2 in the second panel, the data of rd2 are doubled (not in the screen, but i saw this when postback)

Can you explain me what wrong ?!

Thank you and sorry for my english

Anne
    



Dimitar Terziev
Telerik team
 answered on 14 Dec 2011
0 answers
111 views
I found a bug in RadCalender
Here is test solution for that bug, sorry for chaotic code and names, i did this on rush. Don't have time for your bugs.

http://www.filedropper.com/radcalendarbug

(u will need to add telerik.web.ui, i used 2011.3.1115.40 version)
Also i am adding a screenshot how it looks.
Zÿm
Top achievements
Rank 1
 asked on 14 Dec 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?