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

[Solved] Splitter does not decrease with Telerik editor

1 Answer 100 Views
Splitter
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
SUNG
Top achievements
Rank 1
SUNG asked on 04 Oct 2011, 08:03 AM
I have a splitter and left panel is an editor.

I can increase editor panel, but can not decrease. Also mouse point seems going somewhere else when I'm trying to decrease the panel.

How can I resolve this issue?


@{Html.Telerik().Splitter().Name("page-edit-splitter")
                .HtmlAttributes(new { style = "height: 750px;" })
                .Orientation(SplitterOrientation.Horizontal)
                .Panes(panes =>
                {
                    panes.Add()
                        .HtmlAttributes( new { id="splitter-left"})
                        .Size("50%")
                        .MinSize("500px")
                        .Content(@<div id="edit-container">
contents
                            </div>);
                    panes.Add()
                        .Size("50%")
                        .MinSize("130px")
                        .Content(@<div id="preview-container">
                             contents.
                        </div>);
                })
                .Render();
            }

Left panel. partial view contents (ajax load)
<div class="text-editor">
    @{Html.Telerik().Editor()
        .Name("ContentText")
        .HtmlAttributes(new { style = "height:500px;width:100%" })
        .Encode(false)
        .Value(@Model.ContentText)
        .Render();
    }
</div>


- Telerik MVC 3 UI Extension v.2011.2.914.340
- IE9, Chrome, FF7.0.1

1 Answer, 1 is accepted

Sort by
0
Accepted
Dimo
Telerik team
answered on 04 Oct 2011, 08:52 AM
Hello Sung,

The problem is caused by the fact that the IFRAME inside the Editor does not bubble mouse event to the containing page. The resolution is to overlay the Editor iframe with some element while resizing the Splitter. Sample code to achieve the desired behavior is shown here:

http://www.telerik.com/community/forums/aspnet-mvc/editor/editor-height-100-inside-splitter-panel.aspx#1806322

Greetings,
Dimo
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the Telerik Extensions for ASP.MET MVC, subscribe to their blog feed now
Tags
Splitter
Asked by
SUNG
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Share this question
or