This is a migrated thread and some comments may be shown as answers.

ToggleScreenMode full screen doesn't have a progress indicator

8 Answers 78 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Steve Holdorf
Top achievements
Rank 1
Steve Holdorf asked on 30 Nov 2010, 05:52 PM
I am using the RadEditor and allowing the user to switch to full screen. When the user selects the toggle icon it takes a few seconds to switch to full screen. I want to have a progress indicator. How do I do this?

Thanks,


Steve Holdorf

8 Answers, 1 is accepted

Sort by
0
Dobromir
Telerik team
answered on 01 Dec 2010, 04:56 PM
Hi Steve,

Solution to a similar request is available in the following forum thread:
http://www.telerik.com/community/forums/aspnet-ajax/editor/radeditor-toolbar-close-x-button-doesn-t-work-sometimes.aspx

Sincerely yours,
Dobromir
the Telerik team
Browse the vast support resources we have to jumpstart your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
0
Steve Holdorf
Top achievements
Rank 1
answered on 01 Dec 2010, 08:42 PM
Thank you for your help. My boss saw your example of opening a RadEditor in a RadWndow; however, I could not get your sample javascript to work. What I have done is on the RadWindow's asp page link page I have added a new RadEditor. Now that I have two RadEditors on two seperate pages is there anyway to transfer the content of one RadEditor on one page to the content of the other page's RadEditor?

Thanks,


Steve Holdorf
0
Steve Holdorf
Top achievements
Rank 1
answered on 01 Dec 2010, 09:41 PM

To clairfy:

 

The RadWindow on my main page has a NavigateURL="NewEditorPage.aspx" and the NewEditorPage.aspx contains the second RadEditor. Now, I don't know if this is possible wiithout db calls but I really need to handle this through javascript. Also, I need to save the updated content back via javascript.

 

What I was using to load the content of a single RadEditor into a RadWindow is as follows but it doesn't work:

 

javascript>

 

var editorContent = null;

 

Telerik.Web.UI.Editor.CommandList["RichEditor"] = function (commandName, editor, args) {

 

editorContent = editor.get_html(true);
$find("<%=DialogWindow.ClientID%>").show();

};

function SetEditorContent(content) {

$find("<%=RadEditor1.ClientID%>").set_html(content);

}

function SetDialogContent(oWnd)
{
var contentWindow = oWnd.,get_ContentFrame().contentWindow;
if (contentWindow && contentWindow.SetContent)
{
    window.setTimeout(function ()
        {contentWindow.setContent(editorContent); }, 5000);
}
}

Again the above javascript doesn't work for me. Please help. Also, one final thing. In your sample code the RadWindow has a NavigationURL of "EditorInWindow.aspx" and you example makes no reference of such a page?

Thanks,


Steve Holdorf

0
Steve Holdorf
Top achievements
Rank 1
answered on 02 Dec 2010, 05:24 PM
ok,

In your example I see that the DefaultCS.aspx inherits from the Example EditorInWindow. I have created a new blank project and inserted your code. Still, when the new RadWindow opens not editor appears. There must be a problem with the javascript. Please help

Thanks,

Steve
0
Steve Holdorf
Top achievements
Rank 1
answered on 02 Dec 2010, 07:22 PM
I went to your editorinwindow source under telerik examples from the program files directory. I did find the EditorInWindow.aspx page. The editor is launched correctly but still the content is not passed. I also used the same example javascript. Please help.

Thanks,


Steve
0
Rumen
Telerik team
answered on 03 Dec 2010, 03:43 PM
Hi Steve,

Did you put the following function in the page loaded in RadWindow dialog:

function setContent(content)
{
                var editor = $find("<%=RadEditor1.ClientID%>");
                if (editor) editor.set_html(content);  //set content from the parent page to RadEditor in RadWindow
}

The setContent function is fired from the

function SetDialogContent(oWnd)
 {
            var contentWindow = oWnd.get_contentFrame().contentWindow;
            if (contentWindow && contentWindow.setContent)
            {
                window.setTimeout(function()
                {
                    //pass and set the content from the mane page to RadEditor in RadWindow
                    contentWindow.setContent(editorContent);
                }, 500);
            }
}
 
function attached to the OnClientShow event property of RadWindow.

For your convenience I prepared and attached a sample working project which demonstrates the functionality shown in the Editor in RadWindow demo. You can use it as a base to achieve your exact scenario.

Best regards,
Rumen
the Telerik team
Browse the vast support resources we have to jumpstart your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
0
Steve Holdorf
Top achievements
Rank 1
answered on 03 Dec 2010, 07:36 PM
I got it working. What the problem was that I had modified the origional code in the base page before I found the EditorInWindow.aspx page. After I found the editor in window page my modifications did not work. Starting back from scratch like you recommended worked. One note, on the Telerik demo site the EditorInWindow.aspx page should be shown. That's what I recommend but it's your call.

As always, Thanks!


Steve Holdorf
0
Accepted
Rumen
Telerik team
answered on 06 Dec 2010, 01:34 PM
Hi Steve,

Thank you for the useful suggestion.

I updated the demo with an infopanel control which highlights the following important information:

This demo contains a dialog page for the "Open Advanced Editor" window. To view it, hover over the dropdown button in the Example  Source Code & Description section and press the "EditorInWindow.aspx" item.

All the best,
Rumen
the Telerik team
Browse the vast support resources we have to jumpstart your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
Tags
Editor
Asked by
Steve Holdorf
Top achievements
Rank 1
Answers by
Dobromir
Telerik team
Steve Holdorf
Top achievements
Rank 1
Rumen
Telerik team
Share this question
or