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

RadEditor dialogs rendering in weird places?

2 Answers 48 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Shane
Top achievements
Rank 1
Shane asked on 06 Jun 2011, 02:11 AM
Hi,

This has been working perfectly up until this morning when I arrived at work. I'm the only one who has changed anything on this project for weeks.. see screenshot attached.

Its rendering itself inside a form that I have in the master page?

This happens in all browsers.. across multiple platforms.. I don't understand why it is happening :/

Regards,

Shane

2 Answers, 1 is accepted

Sort by
0
Shane
Top achievements
Rank 1
answered on 06 Jun 2011, 06:39 AM
I have since narrowed this down to a very strange cause.

Turns out.. if I remove the first form in the page (the search form in the master page) it works perfectly. Why would this have suddenly started happening?

This works:
@*<div id="masterPageSearchArea" style="background-image: url('/Content/styles/@Html.GetCurrentTheme()/images/masterPageSearchBackgroundImage.png');">
                        @{
                            using (Html.BeginForm("Index", "Search", new { Area = "" }, FormMethod.Get, new { id = "searchForm" }))
                            {
                                @:  @Html.TextBox("query", null, new { style = Html.Raw("background-image: url('/Content/styles/default/images/masterPageSearchBoxBackgroundImage.jpg');") })
                                @:  @Html.Hidden("pagesssssss", 1)
                            }
                        }
                    </div>*@

(Notice how I've commented the entire form out..)

..I'm perplexed.

Shane
0
Rumen
Telerik team
answered on 08 Jun 2011, 02:40 PM
Hello Shane,

Indeed, the editor's dialogs are RadWindows and as such they are appended either to the first form element they have found or the restriction zone. That is why what I can suggest is the following:

1) Do not use multiple form tags - as you have found yourself
2) Keep the forms but set an outermost elemenet  to be a restriction zone for the RadWindow.

If you need further help, please, isolate the problem in a simple working project and send it for examination via a support ticket.

Best regards,
Rumen
the Telerik team

Browse the vast support resources we have to jump start 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
Shane
Top achievements
Rank 1
Answers by
Shane
Top achievements
Rank 1
Rumen
Telerik team
Share this question
or