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

Kendo UI Editor and jQuery Dialog

2 Answers 114 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Milan
Top achievements
Rank 1
Milan asked on 06 Dec 2012, 08:04 PM
Hi, I am new here and i have question, I need a help?

I have jQuery Dialog form with tabs.
Inside this tab i want to have Kendo UI Editor but i have this problem when do this, Inside the tab, a kendo editor creates itself 2 times.

<div id="dialog">
<div id="tabs-7" style="height:540px; width:680px;">
                        @(Html.Kendo().Editor()
                          .Name("Editor")
                          .HtmlAttributes(new { style = "width: 500px;height:440px" })
                          .Value(@<text>
                                <p>
                                       Some text
                                </p>
                                 </text>))
                    </div> 
</div>
$("#dialog").dialog( ........);

Thanks,
Milan
                                 

2 Answers, 1 is accepted

Sort by
0
Accepted
Dimo
Telerik team
answered on 10 Dec 2012, 01:12 PM
Hi Milan,

The problem is caused by the fact that the jQuery dialog moves elements in the DOM and executes the scripts inside them again.

This issue is fixed in the Kendo UI Window and an internal build is available for license holders. Alternatively, use a pure client-side Kendo UI Editor and initialize it after the jQuery dialog.

Greetings,
Dimo
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Milan
Top achievements
Rank 1
answered on 10 Dec 2012, 04:26 PM
Hi Dimo,

thanks for the reply. I solved the problem in a different way.

Greetings,
Milan
Tags
Editor
Asked by
Milan
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Milan
Top achievements
Rank 1
Share this question
or