RadEditor dialogs rendering in weird places?

3 posts, 0 answers
  1. Shane
    Shane avatar
    14 posts
    Member since:
    Jul 2010

    Posted 05 Jun 2011 Link to this post


    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 :/


  2. Shane
    Shane avatar
    14 posts
    Member since:
    Jul 2010

    Posted 06 Jun 2011 Link to this post

    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)

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

    ..I'm perplexed.

  3. Rumen
    Rumen avatar
    14351 posts

    Posted 08 Jun 2011 Link to this post

    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,
    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.

Back to Top