Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
124 views
How do I set the cursor to the end of the document after I've loaded with editor.set_Html()?


Denny Upadhyaya
Top achievements
Rank 1
 answered on 20 Feb 2008
6 answers
232 views
I added the Prometheus RadEditor to a WebPart. The content area is completely transparent when the page renders. Instead of it being White it displays the tiled background graphic of the master page. Setting BackColor to White doesn't affect anything.

Do you have any ideas what is causing this? I shouldn't have to change a stylesheet just to get a white background on the editor should I?

Thank you,
Terry

George
Telerik team
 answered on 20 Feb 2008
1 answer
137 views
Hello All,
    I'm using Prometheus Rad Editor on my page. I set the rad editor to accept only the a limited number of html contents.
    I used the following code to accomplish this scenario.
var maxTextLength;
    var messageText;
    function CharactersLimit(editor)
    {
        maxTextLength = document.getElementById('<%= hdnColumn.ClientID %>').value == 'Notes'? 1000 : 2800;
        messageText = "You have reached the field limit. You cannot type further than " + maxTextLength + " characters.";
        editor.AttachEventHandler ("onkeydown", function (e)
        {
            e = (e == null)? window.event : e;
            textLength = editor.get_Html().length;
            if (textLength >= maxTextLength)
            {
                alert(messageText);
                e.returnValue = false;
                return false;
            }
        });
                    Telerik.Web.DomElement.addExternalHandler(editor.get_document().body, "beforepaste",
        function(e)
        {
            var textLength = CalculateLength(editor);
            if (textLength >= maxTextLength)
            {
                alert(messageText);
                e.cancelBubble = true;
                e.returnValue = false;
                return false;
            }
        });
    }
    function OnClientCommandExecuting(editor, commandName, oTool)
    {
        var CmdName = commandName.get_CommandName();
        if (CmdName == "PasteFromWord"
            || CmdName == "PasteFromWordNoFontsNoSizes"
            || CmdName == "PastePlainText"
            || CmdName == "PasteAsHtml"
            || CmdName == "Paste")
        {
            if (document.all)
            {
                var textLength = CalculateLength (editor);
                if (textLength >= maxTextLength)
                {
                    alert(messageText);
                    return false;
                }
            }
        }
    }
    //To calculate the length of the Editor text
    function CalculateLength(editor)
    {
        var textLength = editor.get_Html().length;
        var clipboardLength = window.clipboardData.getData("Text").length;
        textLength += clipboardLength;
        return textLength;
    }


    Its working fine during the keydown event but not during the paste event.
    I'm getting the alert message if the character limit has exceeded on both the events, but still my contents from the clipboard is getting pasted.
George
Telerik team
 answered on 20 Feb 2008
4 answers
160 views
Hi

Im trying to export a appointment from RadSchedule to more than one users, I execute the RadScheduler.ExportToICalendar(e.Container.Appointment), in writeCalendar function I want to put the task to outlook calendar from users that appears in the task.

I'm Iosu and I click in export to outlook button, if in appointments there are other resources, I want to export calendar to  Jorge's and Gorka's outlook.

How can I do this?

Thanks for all.
T. Tsonev
Telerik team
 answered on 20 Feb 2008
1 answer
97 views
I changed my WindowManager RadControl over to Prometheus and I noticed it didn't behave properly in terms of positioning.  I was using the offsetelementid and it wasn't recognizing the fact.  I checked in FF and it worked perfectly fine.  After finding another thread in this forum about the doctype (I believe that user actually put in a doctype), I decided to remove it entirely for the heck of it:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

After removing this the WindowManager for Prometheus works just fine.  Is this a known issue?
Georgi Tunev
Telerik team
 answered on 20 Feb 2008
7 answers
150 views
I Have Fireworks designed Window layout/gui and convert into a Telerik Prometheus Window skin. How is it possible?
Georgi Tunev
Telerik team
 answered on 20 Feb 2008
1 answer
188 views
Is there an example of loading a radwindow from code-behind in a linkbutton's onclick event?
Georgi Tunev
Telerik team
 answered on 20 Feb 2008
1 answer
173 views
I'm using 100% dynamic TreeViews on my page that are populated via asynchronous call backs (node.ExpandMode = TreeNodeExpandMode.ServerSideCallBack).  It works 100% fine, no problem.

And then I add an AjaxControlToolkit control to the page, and it's broken.  Project here: http://www.adayfam.net/ftl/TelerikBugSample.zip

Reproduction instructions:
1) Click in the lower textbox to see that the AjaxControlTookit CalendarExtender works just fine.
2) Expand some nodes in the tree.
3) Check a couple boxes in the tree.
4) Click the submit button.  It should put the text of the selected nodes in a label.
5) Expand a previously unexpanded node in the tree.
6) Observe that the node does not expand but is hung on "Loading..."

The kicker is, when I remove the CalendarExtender control, it works just fine.  I'm no Ajax expert, but it took me a month of removing third party controls 1 by 1 to figure out it was only a problem with the Telerik controls.  Everything else I use plays fine with the AjaxControlToolkit.

Thanks in advance.  If you need any other information, don't hesitate to ask.
Dimitar Milushev
Telerik team
 answered on 20 Feb 2008
1 answer
97 views

 
  i open up a radwindow "A" from a normal browser and another radwindow "B" from radwindow "A". now clicking a button in radwindow "B" i want to close

  Both radwindow A and B and return to the browser. i am having trouble doing that. can you help me please. i tried something like this in radwindow B
  function CloseRadWindow()

        {
       
          GetRadWindow().BrowserWindow.CloseWindow();
          GetRadWindow().Close();

        }
  window b closes but not window A

Georgi Tunev
Telerik team
 answered on 20 Feb 2008
2 answers
148 views

 

Hi,

Can you please answer to the following queries related to Prometheus Rad Editor.

1. I'm using the Prometheus Rad Editor control in my page. I have set the skin property to "Monochrome". I'm trying to override the backcolor property but doesn't make any difference. For your reference the following is the code snippet which I'm using to achieve this.

 RadEditor NRadEditor = new RadEditor();
        NRadEditor.ID = CtrlName;
         NRadEditor.StripFormattingOptions = EditorStripFormattingOptions.NoneSupressCleanMessage;
        NRadEditor.Skin = "Monochrome";
         NRadEditor.BackColor = Color.White;

2.  In the Prometheus Rad Editor when I tired to set hyperlink for a selected text by using "Hyperlink Manager" icon from the toolbar I'm getting an error "Web.Config Registration Missing!".

Can you please reply me at the earliest to resolve the above errors?

Thanks in advance,
Reethish

reethish
Top achievements
Rank 1
 answered on 20 Feb 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?