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

RadWindow size issue

5 Answers 589 Views
Window
This is a migrated thread and some comments may be shown as answers.
mtallman
Top achievements
Rank 1
mtallman asked on 17 Mar 2008, 01:58 PM
I am implementing the RadWindow to facilitate poping up a window from a context menu on the RadTreeView control. Here is a snippet of the code:

<telerik:RadWindowManager ID="windowManager" runat="server" OnClientClose="Refresh">
    <Windows>
        <telerik:RadWindow runat="server" ID="window" Modal="true"></telerik:RadWindow>
    </Windows>
</telerik:RadWindowManager>

The URL that opens the window consists of a few querystring arguments that have GUIDs. So as a result, the URL is very long and looks like this:

http://rddev06/_layouts/LearningVillage/FolderManagement/MoveFolder.aspx?WebID=ad89d570-0efd-4741-af92-a422ccbca129&ListID=8ca6ea04-343b-4b55-a55a-139e3c2c3787&RootFolderID=d144c25e-aee0-4457-85cf-10b8af6a5216&ItemIDs=53

It seems to me that no matter what size (width) I specify, the RadWindow ignores the size spec. initially. It seems to expand the entire window to show the full URL in the status bar of the RadWindow popup.

I have even tried setting the VisibleStatusbar property on the RadWindow to false, and it doesn't do anything.

Has anyone else experienced the same issue. Again, I'm using the Prometheus controls.

Thanks!

5 Answers, 1 is accepted

Sort by
0
Svetlina Anati
Telerik team
answered on 18 Mar 2008, 11:36 AM
Hello mtallman,

I tested your scenario and when I set the VisibleStatusBar property of the RadWindowManager to false everything worked as expected. Please, make sure that you have set the above mentioned property to false in the RadWindowManager's declaration, not in the RadWindow's declaration.

If you continue experiencing problems, please open a new support ticket and send us a small, runnable project which reproduces the described issue.

Greetings,
Svetlina
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Paul
Top achievements
Rank 1
answered on 26 Mar 2008, 07:11 PM
I am having the same issues with long URL's causing the RadWindow to be extremely wide even though I have the width set to 1024. If I set the visibile status bar to false, it works as designed. My issue however is that the page loading can take a minute or more to load thus the status bar is useful because it has the spinning indicator implying the page is loading.

I need to either keep the status bar, but not let the width exceed my set width regardless of url length, suppress the url from being displayed on the status bar thus preventing the resizing issue, or be able to provide some other visual indicator that the page is loading.

Thanks!

Paul

Here is my code:
<telerik:RadWindowManager ID="RadWindowManager1" runat="server" VisibleOnPageLoad="True" DestroyOnClose="true" ShowContentDuringLoad="false" Height="768px" Width="1024px" Skin="Vista" Behaviors="Default" KeepInScreenBounds="True" Modal="true" VisibleStatusbar="false"></telerik:RadWindowManager> 
RadWindow newnewWindow = new RadWindow();  
newWindow.NavigateUrl = Server + path + parameters;  
newWindow.ID = "DynamicallyCreatedWindow";  
newWindow.Title = "Daily Report";  
RadWindowManager1.Windows.Add(newWindow); 

0
Svetlina Anati
Telerik team
answered on 01 Apr 2008, 10:28 AM
Hi Paul,

I suggest to implement a javascript function which sets the size of the RadWindow client-side. After that you can assign it to the OnClientShow property of your dynamically created RadWindow. In order to get effect from the resize you should set a little timeout, actually setting time interval to 0 will also do the trick.

I hope that you will find my suggestion useful. You can find a small project which you can test in the attached archive file.  



Best wishes,
Svetlina
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Jayavidya
Top achievements
Rank 1
answered on 10 Jan 2011, 03:12 PM
Hello Team,
I am facing issues with RadWindow. I am having a radwindow in design time and opening it on button click using JScript. I am setting the size using radWindowChar.setSize(20, 20);. It doesnt apply to the window.
Please advice on this.
Thanks,
JJ
0
Svetlina Anati
Telerik team
answered on 10 Jan 2011, 04:41 PM
Hello mtallman,

 There are some minimum width and minimum height which are calculated based on the layout elements of the RadWindow - e.g statusbar, titlebar, handles, icons in the titlebar, etc. If a smaller size is set then this minimum size, the RadWindow starts looking ugly and thus this is taken into account in the RadWindow's source code - if the size is less then the minimum needed, the minimum is set.

I am not completely sure about your exact setup but I recommend to examine our RadToolTip control which could be helpful in your case:

http://demos.telerik.com/aspnet-ajax/tooltip/examples/overview/defaultcs.aspx

In case you need further assistance or you have additional questions, do not hesitate to contact us again.

Kind regards,
Svetlina
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.
Tags
Window
Asked by
mtallman
Top achievements
Rank 1
Answers by
Svetlina Anati
Telerik team
Paul
Top achievements
Rank 1
Jayavidya
Top achievements
Rank 1
Share this question
or