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

Issue in setting the window size with RadWindow in mozilla

3 Answers 65 Views
Window
This is a migrated thread and some comments may be shown as answers.
Ankit
Top achievements
Rank 1
Ankit asked on 03 Oct 2011, 11:33 AM
The pop up is set to visible true on the button click. The size of the pop up has been explisitly set as shown below.
<telerik:RadWindowManager ID="RadWindowManager1" VisibleStatusbar="false" runat="server" Modal="True" Visible="False"
  
<Windows>
  
<telerik:RadWindow ID="RadWindow1" runat="server" style="display:none;" VisibleOnPageLoad="true"
  
NavigateUrl="PopUp_PDFParameters.aspx" OnClientShow="UseRadWindow">
  
</telerik:RadWindow>
  
</Windows>
  
</telerik:RadWindowManager>

However in Mozilla when the pop up appears on button click it appears to be stretched in size. This happens in case of Mozilla only and happens only the first time the pop up opens.

Also ,

I have found that  when we set the RadWindow’s property (VisibleTitlebar="false”) the issues gets solved.

This is working fine in IE 6,7 and 8 .
Let me know what can be the issue.

3 Answers, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 04 Oct 2011, 04:51 PM
Hello Ankit,

Using the Visible property on the RadWindowManager should not be done, as it generally prevents the control from rendering. Also the style="display: none;" attribute should be removed from the individual RadWindow, as it manages its visibility automatically.

Once the properties are set correctly and the scenario is valid things seem to be working correctly on my end: http://screencast.com/t/LofL1LAii3vF. I am also attaching my test page as a reference.


All the best,
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
0
Ankit
Top achievements
Rank 1
answered on 11 Oct 2011, 06:46 AM

Thanks Marin.
I have tried the code that you had sent and my Mozilla issue got solved now.
However, by using radopen as you had suggested , my server side code on my image button click was not working.

So , I changed the code a bit and my image button tag is as follows :-

<telerik:GridTemplateColumn UniqueName="chkPurge" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center">
         <ItemTemplate>
                <asp:CheckBox ID="CheckBoxSelect" runat="server" Visible="false" ></asp:CheckBox>
                <asp:ImageButton ID="ImgBtnPurgedFile" runat="server"  CommandName="PurgedDetails" ImageUrl="../App_Themes/Diebold08/Grid/Delete.gif" Visible="false" OnClientClick="radopen(null, 'RadWindow1'); return true;"/>
            </ItemTemplate>
        </telerik:GridTemplateColumn>

Now by setting return as true , I got my server side code running (itemcommand in my case) but I am not able to view the pop up now.
Is their a way to open a window pop up on server side instead of radopen?
My RadWindowManager tag as as follows :-
<telerik:RadWindowManager ID="RadWindowManager1" 
                             VisibleStatusbar="false" runat="server" Modal="True" Skin="Windows7" OnClientShow="UseRadWindow">
                                 <Windows>
                                     <telerik:RadWindow ID="RadWindow1" runat="server"
                                        NavigateUrl="PopUpItemLoadPurge.aspx" OnClientShow="UseRadWindow">
                                     </telerik:RadWindow>
                                 </Windows>
                            </telerik:RadWindowManager>

Kindly let me know what can i do with this ?
0
Marin Bratanov
Telerik team
answered on 12 Oct 2011, 12:57 PM
Hello Ankit,

If you cannot go without the server-side functionality I have two suggestions for this case:
1) place the grid in an update panel so that the RadWindowManager is not disposed in a full postback - this way the radopen() call will be executed and the newly opened RadWindow will not be disposed. Please note that improper AJAX configurations may result in broken functionality - for example other content on the page not being updated.
2) Inject the call to the JavaScript function that will open the RadWindow from the code-behind. More information on this approach is available in this help article and I advise that you examine the following sticky thread on the matter: http://www.telerik.com/community/forums/aspnet-ajax/window/opening-radwindow-from-the-server.aspx.


Greetings,
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
Ankit
Top achievements
Rank 1
Answers by
Marin Bratanov
Telerik team
Ankit
Top achievements
Rank 1
Share this question
or