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

[Solved] Performance Optimization Options

5 Answers 104 Views
Editor
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Chris
Top achievements
Rank 1
Chris asked on 16 Oct 2010, 01:20 AM
Hello,

Are there any plans to have performance optimization options available for the Editor MVC Extensions, similar to those available for the RadEditors. i.e. toolbar on focus, toolbar provider, etc?

Thanks,

-Chris

5 Answers, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 18 Oct 2010, 09:37 AM
Hi Chris,

 Toolbar on focus and toolbar provider are not in our immediate plans for the MVC editor. The first thing though should be quite easy to implement with a few lines of JavaScript. Do let us know if you need it - I will prepare a sample application.

Regards,
Atanas Korchev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Chris
Top achievements
Rank 1
answered on 18 Oct 2010, 09:01 PM
Hi Atanas,

A sample application would be much appreciated. :)  Would it be difficult to implement a solution wherein each Editor instance uses the same toolbar, similar to the floating toolbar for the RadControls?

-Chris
0
Atanas Korchev
Telerik team
answered on 19 Oct 2010, 07:21 AM
Hello Chris,

 I am sending the sample application. It all boils down to using the 'focus' and 'blur' events:

    <%: Html.Telerik().Editor()
            .Name("Editor")
            .ClientEvents(events => events.OnLoad("onLoad"))
    %>

    <script type="text/javascript">
    
    function onLoad() {
        var editor = $(this).data('tEditor');
        $(editor.window).bind('blur', function () {
            $('.t-editor-toolbar', editor.element).hide();
        }).bind('focus', function() {
            $('.t-editor-toolbar', editor.element).show();
        });
    }
    
    </script>

Implementing a floating toolbar is not that easy as all editors need to use the same toolbar. This would require a modification in the editor code which is not as trivial as hiding and showing the toolbar. 

Regards,
Atanas Korchev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Chris
Top achievements
Rank 1
answered on 21 Oct 2010, 06:16 PM
Thanks Atanas for the quick response.  The solution is quite simple. :)

Have you guys done any tests on running more than a single Editor control on page?  I have had a specific issue with the drop-down lists when initializing more than a single Editor.  The drop-down list does not expand, but merely shows a gray line that is about the same length of the drop-down.  I have tried to repro the issue, and have not been able to successfully repro it as of yet.  My current train of thought is that it may have something to do with the display style attribute of the container wherein the Editor resides.  I noticed the issue when using jQuery UI toggles and Accordian to hide and show Editor controls.  But unfortunately, I still do not have a consistent repro, so I'll have to get back to you with a sample application.

Does this behavior sound familiar?

Thanks,

-Chris SInco
0
Atanas Korchev
Telerik team
answered on 22 Oct 2010, 07:30 AM
Hello Chris,

Unfortunately this behavior does not sound familiar to me. Please let us know if you manage to reproduce it.

Regards,
Atanas Korchev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Editor
Asked by
Chris
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Chris
Top achievements
Rank 1
Share this question
or