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

RadGrid disappears on mousedown or drag event on Radwindow

1 Answer 97 Views
Window
This is a migrated thread and some comments may be shown as answers.
Marc
Top achievements
Rank 1
Marc asked on 01 Nov 2012, 05:33 PM
Why is does the RadGrid disappear when I click on or drag the Radwindow? Is there a way to eliminate this behavior?
<telerik:RadWindowManager ID="RadWindowManager1" runat="server" ShowContentDuringLoad="false" Width="638px" Height="323px" Top="80px" Left="80px" VisibleStatusbar="False" BorderStyle="None" BorderWidth="1px"
        InitialBehaviors="Close, Move" Animation="None" Behaviors="Close, Move" EnableViewState="false"  InitialBehavior="Close">
        </telerik:RadWindowManager>

//Show RadWindow with
function ShowWindow(Document) {
    //Popup Window
    top.radopen(Document, "RadWindow1");
    //Window within the Iframe
    //window.radopen(Document, "RadWindow1");
    return false;
}


1 Answer, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 02 Nov 2012, 11:19 AM
Hi Marc,

The RadWindow hides underlying iframes intentionally to prevent them from consuming the mouse events, as this can result in buggy behavior during dragging.

You can disable this behavior with the following code, but please keep in mind that this may break some functionality (e.g. a fast move/resize may not finish properly because the mouseup event will not bubble from the iframe below):
var oWnd = top.radopen();
oWnd._resizeExtender.set_hideIframes(false)

On a side note - the InitialBehavior property is obsolete and the InitialBehaviors (which is the current one) does not take the two behaviors you have set, they can only be used for the Behaviors collection. How the initial state is controlled is explained in this help article. Also, the borderstyle and borderwidth properties are not used in the control because they are far too simple to control complex behavior. More on that can be read here.

All the best,
Marin Bratanov
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 RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Window
Asked by
Marc
Top achievements
Rank 1
Answers by
Marin Bratanov
Telerik team
Share this question
or