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

Size of Radwindow

1 Answer 46 Views
Window
This is a migrated thread and some comments may be shown as answers.
bharat kumar
Top achievements
Rank 1
bharat kumar asked on 06 Aug 2010, 05:09 PM

Hi ,
i am using radwindowmanager on my entire application. and in all the pages it works fine except one page.
i dont know the reason for this as i am using multiple radwindowmanager on this page.

here is the code which is working on all pages but not on one particular page..

<telerik:RadWindowManager ID="RadWindowManager1" runat="server" Skin="Vista"
                         Width="1200px" Height="750px" ReloadOnShow="true" Modal="true"
                                    ShowContentDuringLoad="false" Behavior="Close"
                                    VisibleStatusbar="false">
                            <Windows>
                                <telerik:RadWindow Skin="Vista" ID="AttachmentDialog" runat="server" Title="Document Dialog"
                                    ReloadOnShow="true" Modal="true"
                                    ShowContentDuringLoad="false" Behavior="Close"
                                    VisibleStatusbar="false" OnClientClose="ReloadAttachmentGrid"
                                />
                            
                            </Windows>
                        </telerik:RadWindowManager> 

please suggest where i am doing wrong.on that page after doing all changes the popup size is still small..i mean not 1200 and 750.

1 Answer, 1 is accepted

Sort by
0
Georgi Tunev
Telerik team
answered on 09 Aug 2010, 05:48 AM
Hello bharat kumar,

A problem like the one you describe, can occur if you have more than 1 RadWindowManager on the page. In such case, you need to take into consideration the following:

   1. All RadWindowManager's functions (radopen, radalert, radconfirm, radprompt, GetRadWindowManager, etc) are always using the first rendered RadWindowManager on the page.
   2. Every RadWindowManager "knows" only the RadWindows that are declared in its Windows collection.

This means that if you have a RadWindow2 declared in RadWindowManager2, and you use something like radopen(myUrl, "RadWindow2");, radopen will use RadWindowManager1 and will open a new RadWindow with the settings taken from RadWindowManager1. To avoid that problem, when you have multiple managers on a page, you need to get a reference to the correct RadWindowManager first and then call its methods.
e.g.
var manager = $find("<%= RadWindowManager2.ClientID %>");
manager.open(myUrl, "RadWindow2");



All the best,
Georgi Tunev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Window
Asked by
bharat kumar
Top achievements
Rank 1
Answers by
Georgi Tunev
Telerik team
Share this question
or