Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
92 views
Hi,

I am using RadTreeView LoadOnDemand WCF Binding feature. Is there a way to bind the tooltip to node. I found this article http://www.telerik.com/help/aspnet-ajax/treeview-general-setting-additional-properties-to-the-node-in-the-web-service.html

but I do now want to use OnClientNodeDataBoundHandler event of the treeView. Is there any other alternative of direct binding of tooltip.
Bozhidar
Telerik team
 answered on 14 Dec 2011
7 answers
201 views
I've successfully implemented a double-click mechanism in the RadListBox, initially with this code:

    protected void radListBoxStopes_ItemCreated(object source, RadListBoxItemEventArgs e)<br>    {<br>      string updatePanelID = this.Parent.Parent.FindControl("UpdatePanel1").UniqueID;<br>      string parameters = e.Item.Index.ToString();<br>      e.Item.Attributes.Add("ondblclick", "__doPostBack('" + updatePanelID + "', " + Tools.EncloseInSingleQuotes(parameters) + ");");<br>    }<br>

About the only thing to point out about that code is that I'm passing the parent UpdatePanel ID so that a partial postback, rather than a full postback, occurs.

Everything seems to work fine except for one thing.  I've prepared a video for you to demonstrate the problem: http://mwtech.com/downloads/public/DemoForTelerikSupport.zip

In this video I perform a few single-clicks, which work fine.  But notice when I double-click (3 times in the video): All of the text in the listbox and some text up above is temporarily selected.  You see this in the form of a blue flash.  It's very irritating!

Why is this occurring and how can I prevent it?

Robert

P.S. Is it possible that what I'm experiencing is similar to this?  If so, then what's the name of the property you added to disable it?
Bozhidar
Telerik team
 answered on 14 Dec 2011
1 answer
126 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
242 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
76 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
120 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
83 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
193 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
148 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
81 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?