Telerik Forums
UI for ASP.NET AJAX Forum
6 answers
324 views
Hi:
I am trying to use rad editor inside jquery dialog, but for one reason the editor looks to be disabled, I mean I am not able to type anything on it.

This is the code I am using:

 <script type="text/javascript">

            $(function() {
                // Dialog            
                $('#dialog').dialog({
                    autoOpen: false,
                    resizable: false,
                    width: 400
                });
         
            });

</script>  

...

<div id="dialog" title="Pharmacist's Comments" class="modal">                                            
    <telerik:RadEditor ID="RadEditor1" runat="server"  Width="100%" Height="300" >
    </telerik:RadEditor>                                                    
    <asp:TextBox runat="server" ID="txtTest1"  />
</div>   



Also, Is it possible when resizing the dialog the radeditor adjust its height and width accordingly?

Regards,
Gabriel
Rajeev Vachani
Top achievements
Rank 1
 answered on 24 May 2017
0 answers
172 views
Hi,
Getting the similar error while I am trying to change the font style and size in radeditor. This is happening when I use ContentAreaMode="Div".
Any suggestions please.

Uncaught TypeError: Cannot read property 'length' of undefined
    at Function.Sys.UI.DomEvent._removeHandler (Telerik.Web.UI.WebResource.axd:6)
    at Sys.UI.DomEvent.removeHandler (Telerik.Web.UI.WebResource.axd:6)
    at Telerik.Web.UI.Editor.FontNameDropDown.detachEventHandlers (Telerik.Web.UI.WebResource.axd:5055)
    at Telerik.Web.UI.Editor.FontNameDropDown.dispose (Telerik.Web.UI.WebResource.axd:4988)
    at Function.Type.callBaseMethod (Telerik.Web.UI.WebResource.axd:6)
    at Telerik.Web.UI.Editor.FontNameDropDown.dispose (Telerik.Web.UI.WebResource.axd:5206)
    at Sys._Application.disposeElement (Telerik.Web.UI.WebResource.axd:6)
    at Sys.WebForms.PageRequestManager._updatePanel (Telerik.Web.UI.WebResource.axd:15)
    at Sys.WebForms.PageRequestManager._scriptIncludesLoadComplete (Telerik.Web.UI.WebResource.axd:15)
    at Sys.WebForms.PageRequestManager.<anonymous> (Telerik.Web.UI.WebResource.axd:6)

Thanks,
Sailaja.
Malleswara
Top achievements
Rank 1
 asked on 24 May 2017
6 answers
419 views
Hi Guys,

I am stuck with this problem since a month.

I have used telerk.web.ui.fileexplorer on the left of the page. In this fileexplorer i have added a custom button with label "New Document" and ask for fiilename.

On click of this button, i show telerik web ui window with a textbox. In this dialog on click of submit button i am supposed to grab the entered value in dialog box in parent page and alert it.

But i can't return value to parent page from this dialog box page.

I have already done this with other sample projcet and was successfully able to return value from dialog box to parent page. But when i used this facility with FileExplorer it doesn't seem to work.

Please suggest if i am not going in the right direction, may be i should also look for alternative, but this sample should work i don't know what's going on.
Bhavya
Top achievements
Rank 1
 answered on 24 May 2017
1 answer
72 views

Hi Team,

when i am changing value in  font size drop down the selected value in font name drop down is changes automatically  to default.
here i am unable to predict the selected font name.
i am using 2012 version of telerik.web.ui.dll
could you please help me out.

Regards,
Rushyendra.

Malleswara
Top achievements
Rank 1
 answered on 24 May 2017
3 answers
133 views

Hi,

I have a Rad Scheduler in TimeLine View. It aligns well on the page load, but when we add, delete or edit appointments, the scheduler rebinds and rsVerticalHeaderWrapper div misaligns with rsContentWrapper div. 

The first image shows the scheduler as aligned on PageLoad.

I deleted the appointment "remove block" and the scheduler rebinds which now misaligned the Scheduler as shown in the second image.

Please suggest.

Thanks in Advance.

Sneha
Top achievements
Rank 1
 answered on 24 May 2017
7 answers
588 views
Hi,
I have used RadEditor in my project and created a demo page using the following HTML and  toolkit.xml
Error is  "Uncaught TypeError: Cannot read property 'length' of undefined "

HTML is :

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="test.aspx.cs" Inherits="test" %>


<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <script language="javascript" type="text/javascript">
        function OnClientShow(editor, args) {
            //alert(editor.get_id());
            editor.onParentNodeChanged();
            var style = editor.get_contentArea().style;
            style.backgroundImage = "none";
            style.backgroundColor = "white";
            style.minHeight = "100px";
            //style.min-height = "200px";
        }
        function loadGallery(s) {
            alert(s);
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
        <Scripts>
        </Scripts>
    </telerik:RadScriptManager>
    <div>
        <%-- AutoResizeHeight="True" 
    EditModes="Design, Html" ContentAreaMode="Div" ContentFilters="None" ToolsFile="~/toolfile.xml" Runat="server" 
    min-height="200px" OnClientLoad="OnClientShow" Height="100%" Width="99%" --%>
        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
            <ContentTemplate>
                <telerik:RadEditor ID="RadEditor1"  AutoResizeHeight="True" 
    EditModes="Design, Html" ContentAreaMode="Div" ContentFilters="None" ToolsFile="~/toolfile.xml" Runat="server" 
    min-height="200px" OnClientLoad="OnClientShow" Height="100%" Width="99%">
                </telerik:RadEditor>
                
                <asp:Button ID="Button1" runat="server" Text="Button" OnClick="Button1_Click" />
            </ContentTemplate>
        </asp:UpdatePanel>
    </div>
    </form>
</body>
</html>

When i click on button then it will show an error on in javascript and "Font-size" and "Font-name" goes disable .
Please reply . I am waiting for answer.


Sailaja
Top achievements
Rank 1
 answered on 24 May 2017
3 answers
148 views
What could be the meaning of this error. "Clone error. No Target element specified". Comes when I bind data using webservice binding, the error comes in Month View whenever more option is displayed
Doug
Top achievements
Rank 1
 answered on 23 May 2017
1 answer
144 views

I am utilizing Kendo 2016.3.1028, and on my webpage I need to use som tools that utilize an older version of jquery than kendo is utilizing.

I import the older version of Jquery through a partial view, which also contains the code for the other tools.

Once I import the older jquery version, however, my kendo objects, stop working. 

My my treeview dataItems apparantly stop existing, and my tabPages stop switching etc. 

Is there a way to make my kendo objects "survive" the importation of another, older version of Jquery?

Tsvetina
Telerik team
 answered on 23 May 2017
2 answers
648 views

My header tag:

1.<header>
2.  <link type="text/css" rel="stylesheet" href="../Css/bootstrap.min.css" />
3.  <link type="text/css" rel="stylesheet" href="../Css/font-awesome.min.css" />
4.  <link type="text/css" rel="stylesheet" href="../Css/StyleSheet.css" />
5.  <link type="text/css" rel="stylesheet" href="<%=Configuration.GetSetting("BrandingUrl") %>"  />
6.</header>

 When I enable CDN in web.config, Telerik css files are added between lines 5 and 6, However I need line 5  (My branding file containing some Telerik overrides) to be the last line.

I tried using the RadStyleSheetManager which provides ordering capabilities but since lines 2 and 3 are actually fully qualified URLs, I could not find a way to combine URLs and static files using the control. 

How would I be able to achieve this short of adding each [RadControl].css file I use in my Webform application.

 

Michael
Top achievements
Rank 2
 answered on 23 May 2017
1 answer
742 views
I want to develop a web based dynamic query builder interface for reporting module in my application, where in user can select columns and provide conditions to build a query for a report and save that query, later that query belonging to that report can be executed to display results. So my question is, does telerik  provide API to help build such an interface, there is query builder in report designer but can but can we also have API for it to build such web based query builder.
Stef
Telerik team
 answered on 23 May 2017
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?