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

Style RadWindow from Grid

5 Answers 55 Views
Window
This is a migrated thread and some comments may be shown as answers.
Jon
Top achievements
Rank 1
Jon asked on 18 Apr 2011, 12:08 PM
Hi,

Following this demo - I can't get the window to style as I wish (with a skin or a size). The demo itself uses a default setting.
Is it possible please?

Cheers,

Jon

5 Answers, 1 is accepted

Sort by
0
Georgi Tunev
Telerik team
answered on 21 Apr 2011, 08:14 AM
Hello Jon,

If you check the code of the demo, you will notice a RadWindowManager on the page, with a RadWindow in it:
<telerik:RadWindowManager ID="RadWindowManager1" runat="server">
            <Windows>
                <telerik:RadWindow ID="UserListDialog" runat="server" Title="Editing record" Height="300px"
                    Width="300px" Left="150px" ReloadOnShow="true" ShowContentDuringLoad="false"
                    Modal="true" />
            </Windows>
        </telerik:RadWindowManager>

This RadWindow (UserListDialog) is the window opened when you click the Edit link. You can set the appearance from the markup, or as an alternative - in the ShowInsertForm() function, by using RadWindow's client-side API.

Regards,
Georgi Tunev
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.

0
Jon
Top achievements
Rank 1
answered on 21 Apr 2011, 08:39 AM
Thanks Georgi,

It doesn't work (at least for me) by changing the markup in the window control - What I meant by default setting is that you have it set to 300 x 300 - if you try to change this to say 900 x 900 - it doesn't change the size or also the skin (if applied).
Could you possibly test that from your end?

I will now try the client side code - but I need to change the skin as well as the size.

Cheers,

Jon
0
Georgi Tunev
Telerik team
answered on 26 Apr 2011, 11:25 AM
Hello Jon,

At this point I cannot say what is the reason for this behavior on your side - the code is working as expected (it has been thoroughly tested before every release). For convenience, I isolated the code from the demo to a single page and also added a screenshot showing the result in the browser. Could you please check them and let me know how my setup differs from yours?


Best wishes,
Georgi Tunev
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.

0
Jon
Top achievements
Rank 1
answered on 01 May 2011, 08:07 AM
Hi Georgi,

Many thanks for the demo page - I did have mine setup exactly the same. The only difference was that my grid is in a usercontrol which is inside a multipage. I couldn't get it to work.

However, I now have it working; all I did was to take away the <Window> inside the window manager and set the skin, width etc. in the manager like below.... It all works now.

<telerik:RadWindowManager ID="RadWindowManager3" runat="server" Skin="Black" EnableShadow="true" Width="700px" Left="450px" Modal="true" ShowContentDuringLoad="false" ReloadOnShow="true" KeepInScreenBounds

="true"> </telerik:RadWindowManager>

The Javascript Function still references what was the ID of the Window (see below) but it doesn't seem to make any difference - It all works!

window.radopen("modals/JobDetails.aspx?jID=" + id, "jDetails");

Cheers,

 

 

Jon

 

 

0
Georgi Tunev
Telerik team
answered on 02 May 2011, 02:01 PM
Hi Jon,

Thank you for the additional information - I think I know now what is going on :)
Behavior like the one you describe could occur if you have more than 1 RadWindowManager on the page. For example - one in the main page and another in the user control.
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 as a standalone control OR 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");   



Regards,
Georgi Tunev
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
Jon
Top achievements
Rank 1
Answers by
Georgi Tunev
Telerik team
Jon
Top achievements
Rank 1
Share this question
or