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

Problem with RadEditor look and behavior

2 Answers 108 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Hanoch Faran
Top achievements
Rank 1
Hanoch Faran asked on 25 Mar 2009, 05:17 PM
I uses Telerik Radcontrols for Ajax, version 2008.3.1105.20 from 4.11.08.

I have  a form which contains a few RadPageView pages.
In (only) one of the pages, I put some RadioButtons, then a RadEditor window.

The radeditor is defined this way in the aspx:

    <telerik:RadEditor EnableViewState="false" EditModes="Design" runat="server" ID="edtNotes"  
    ToolsFile="~/RadControls/Editor/BasicTools.xml" Skin="Web20" Height="250px" Width="650px" OnClientLoad="SelectionChanged" > 
    <CssFiles> 
        <telerik:EditorCssFile Value="~/RadControls/Editor/EditorContentArea.css" /> 
    </CssFiles> 
    </telerik:RadEditor> 
 

My first problem was that even after selecting another PageView, the focus was still on the editor!
The editor itself wasn't visible, but the cursor was still there, and if the user typed any keys, then when coming back to the editor, we could see that the characters types were added to the editor content!

I tried to use setFocus() to force the cursor to leave the editor, but that didn't work.
Then I tried another method: When leaving the editor's page, I change the editor visibility to false with:

$find("<%=edtNotes.ClientID%>").set_visible(false); 

then, when entering the editor's page, I turned editor's visibility back to true.

Now, there's isn't a problem with the focus, and the cursor isn't seen in the other pages at all.
But, this method raised another problem:
Now, the editor appears with no icons in the toolbar at all. Only the toolbar is shown with an empty ruler.
In some of my client's stations, it's even worse: sometimes the toolbar spread all over the screen, with one icon in each line.

Can you give me some help here? I'll be grateful to receive your suggestions.

Yours Sincerely,
Hanoch




2 Answers, 1 is accepted

Sort by
0
Tervel
Telerik team
answered on 30 Mar 2009, 03:55 PM
Hi Hanoch,

The best way is to deal with your original problem with focus - because the other problems that occurred are a sequence of your attempts to solve this issue. Rather than calling editor.setFocus() it is better to call focus() on another element (for example, on the selected tab element, which is an A tag).

If you are not able to resolve the issue, the best way to continue would be to send us a project that demonstrates the problem (and we will complete the necessary changes). Hiding the editor with set_visible and showing it back is not recommended in this scenario, and in fact is not needed if you set the focus to another element - so our suggestion is to avoid this approach.

Best regards,
Tervel
the Telerik team

Check out Telerik Trainer , the state of the art learning tool for Telerik products.
0
Hanoch Faran
Top achievements
Rank 1
answered on 31 Mar 2009, 07:12 AM
Hi Tervel

I tried to deal with the focus method at first, but it didn't help. But I'll try again and maybe I'll have better success this time.
Meanwhile I solved the problem by subsituting the "Web20" skin by "Vista". I can't explain why, but since then the problem didn't occur again...

Best regards,
   Hanoch
Tags
Editor
Asked by
Hanoch Faran
Top achievements
Rank 1
Answers by
Tervel
Telerik team
Hanoch Faran
Top achievements
Rank 1
Share this question
or