Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
108 views
Hello,
I have a radmenu in a user control that is placed on several master pages.  I would like to be able to determine the selected item from that menu on my content pages.  I found the solution below which works well if the radmenu is placed on the master page.  I would like to avoid having to duplicate the radmenu on all my master pages and am wondering if anyone knows how I could modify this to be able to find the menu from the user control and then determine the selected item.

http://www.telerik.com/community/forums/preview-thread/aspnet-ajax/menu/radmenu-masterpage-and-contentplaceholder-page.aspx
Thanks,
Bob
Bozhidar
Telerik team
 answered on 14 Dec 2011
4 answers
211 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
65 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
100 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
70 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
164 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
133 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
62 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
187 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
76 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?