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

RadWindowManager is visible on my page

4 Answers 94 Views
Window
This is a migrated thread and some comments may be shown as answers.
ADe
Top achievements
Rank 1
ADe asked on 20 Jul 2008, 03:34 PM
EDIT: Workaround: I just stuck it in a div and set the style to display:none. This can't be what we're extected to do???

I noticed a blank line at the bottom of my web page and using the IE Developer Toolbar I found out it's the RadWindowManager.

Why is it visible as surely it shouldn't be...???

Here is my code,

        <telerik:RadWindowManager ID="radWindowManager" runat="server" Skin="Web20" style="z-index: 90000;">  
            <Windows> 
                <telerik:RadWindow ID="radWindowAbout" runat="server" Animation="FlyIn" Overlay="True" KeepInScreenBounds="True" Behavior="Default" InitialBehavior="None" Left="" 
                    NavigateUrl="Dialogs/About.aspx" Style="display: none;" Top="">  
                </telerik:RadWindow> 
            </Windows> 
        </telerik:RadWindowManager> 

It ends up creating this HTML which is clearly showing as a blank line,

        <div id="ctl00_ctl00_ContentPlaceHolder_radWindowManagerPanel">  
 <div id="ctl00_ContentPlaceHolder_radWindowManager" style="z-index:90000;display:none;">  
  <div id="ctl00_ContentPlaceHolder_radWindowAbout" style="display:none;">  
     
                <input id="ctl00_ContentPlaceHolder_radWindowAbout_ClientState" name="ctl00_ContentPlaceHolder_radWindowAbout_ClientState" type="hidden" /> 
  </div><div id="ctl00_ContentPlaceHolder_radWindowManager_alerttemplate" style="display:none;">  
  <div class="windowpopup radalert">     
   <div class="dialogtext">  
   {1}      
   </div> 
     
   <div> 
    <a  onclick="$find('{0}').close();" 
    class="radwindowbutton" href="javascript:void(0);">  
     <span class="outerspan">  
      <span class="innerspan">##LOC[OK]##</span> 
     </span> 
    </a>      
   </div> 
  </div> 
  </div><div id="ctl00_ContentPlaceHolder_radWindowManager_prompttemplate" originalAttribute="href" originalPath="javascript:void(0);">  
     <span class="outerspan">  
      <span class="innerspan">##LOC[OK]##</span> 
     </span> 
    </a>      
   </div> 
  </div> 
  </div><div id="ctl00_ContentPlaceHolder_radWindowManager_prompttemplate" style="display:none;">  
  <div class="windowpopup radprompt">     
   <div class="dialogtext">  
   {1}      
   </div> 
     
   <div> 
    <input type="text"  class="dialoginput" value="{2}" /> 
   </div> 
   <div> 
    <onclick="$find('{0}').callBack(this.parentNode.parentNode.getElementsByTagName('input')[0].value);"      
     class="radwindowbutton" href="javascript:void(0);" originalAttribute="href" originalPath="javascript:void(0);" ><span class="outerspan"><span class="innerspan">##LOC[OK]##</span></span></a> 
    <onclick="$find('{0}').callBack('');" class="radwindowbutton"  href="javascript:void(0);"><span class="outerspan"><span class="innerspan">##LOC[Cancel]##</span></span></a> 
   </div> 
  </div>    
  </div><div id="ctl00_ContentPlaceHolder_radWindowManager_confirmtemplate" originalAttribute="href" originalPath="javascript:void(0);"><span class="outerspan"><span class="innerspan">##LOC[Cancel]##</span></span></a> 
   </div> 
  </div>    
  </div><div id="ctl00_ContentPlaceHolder_radWindowManager_confirmtemplate" style="display:none;">  
  <div class="windowpopup radconfirm">     
   <div class="dialogtext">  
   {1}      
   </div>        
   <div> 
    <onclick="$find('{0}').callBack(true);"  class="radwindowbutton" href="javascript:void(0);" originalAttribute="href" originalPath="javascript:void(0);" ><span class="outerspan"><span class="innerspan">##LOC[OK]##</span></span></a> 
    <onclick="$find('{0}').callBack(false);" class="radwindowbutton"  href="javascript:void(0);"><span class="outerspan"><span class="innerspan">##LOC[Cancel]##</span></span></a> 
   </div> 
  </div>    
  </div><input id="ctl00_ContentPlaceHolder_radWindowManager_ClientState" originalAttribute="href" originalPath="javascript:void(0);"><span class="outerspan"><span class="innerspan">##LOC[Cancel]##</span></span></a> 
   </div> 
  </div>    
  </div><input id="ctl00_ContentPlaceHolder_radWindowManager_ClientState" name="ctl00_ContentPlaceHolder_radWindowManager_ClientState" type="hidden" /> 
 </div> 

4 Answers, 1 is accepted

Sort by
0
Shaun Peet
Top achievements
Rank 2
answered on 20 Jul 2008, 09:54 PM
I can't recall the RadWindowManager occupying space anytime I've used it before so I don't think that you are experiencing the default behavior.  Which version of IE are you experiencing this with?

I suppose there could be something in your stylesheet that is setting something globally that is getting picked up by the RadWindowManager's html.  But even if that was the case, I agree that the RadWindowManager should never be visible anyway.

Personally, I don't like just how much html is rendered to the page by the RadWindowManager as opposed to just having a RadWindow - but it's the only way I can control the z-index :(
0
Georgi Tunev
Telerik team
answered on 21 Jul 2008, 12:34 PM
Hi ADe,

In general RadWindowManager is not shown on the page. Can you please let me know have you by any chance updated it with Ajax in some way? If this is so and you are using RadAjaxManager, you need to set its UpdatePanelsRenderMode property.



Greetings,
Georgi Tunev
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
ADe
Top achievements
Rank 1
answered on 21 Jul 2008, 02:35 PM
I hadn't but I moved it to tyhe top of the page where at first it didn't show but when a menu was clicked which makes a window popup it suddenly created the blank line where the RadWindowManager would have been.

Thanks for responding.
0
Georgi Tunev
Telerik team
answered on 21 Jul 2008, 03:05 PM
Hi ADe,

I am still not able to reproduce the problem locally, but if you open a support ticket and send me a reproduction project, I will check it right away. This way we will be able to examine the issue locally and provide you with a solution so you will not need to hide the manager in a div.


Best wishes,
Georgi Tunev
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Window
Asked by
ADe
Top achievements
Rank 1
Answers by
Shaun Peet
Top achievements
Rank 2
Georgi Tunev
Telerik team
ADe
Top achievements
Rank 1
Share this question
or