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

How is the Modal property implemented?

1 Answer 49 Views
Window
This is a migrated thread and some comments may be shown as answers.
Sean
Top achievements
Rank 2
Sean asked on 10 Nov 2011, 12:15 AM
Hey Telerik,

Just a quick question. I experienced a pretty curious bug under Internet Explorer.

The web application I'm building upon has a Master Page which defines some a horizontal navigation bar at the top of the page.

After opening a RadWindow with Content Template, then closing the RadWindow, the horizontal navigation bar becomes invisible. This only occurs on Internet Explorer, only with Content Template RadWindows, and only if they are Modal.

I was especially careful to go through all of my code and make sure there were no early terminations of HTML mark-up controls. That is, something like 
<div id="foo" />

would not be acceptable due to the parsing standards of IE. As such, I am confident in saying that I am properly terminating my HTML mark-up.

That being said, I was able to resolve the issue like so:

OnClientBeforeShow = "AddModal";
OnClientBeforeClose = "RemoveModal";

//Bug -- IE removes 'TopBar' when closing a modal, content template RadWindow. Circumvent by removing the property right before close.
function AddModal(radWindow) {
    radWindow.set_modal(true);
}
 
function RemoveModal(radWindow) {
    radWindow.set_modal(false);
}

Which is awesome -- I am happy to have fixed the bug. Nevertheless, I am left very curious. What's going on here? Why would this implementation have better results than setting the Modal property explicitly?

Thanks,

Sean

1 Answer, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 11 Nov 2011, 12:58 PM
Hi Sean,

This is some curious behavior indeed. I am glad to hear you have found a workaround, yet I am not certain what the actual reason for this may be. If you can send me some simple markup that reproduces this behavior I will examine it in case this is some bug in the RadWindow.


Kind regards,
Marin
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
Sean
Top achievements
Rank 2
Answers by
Marin Bratanov
Telerik team
Share this question
or