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

RadWindow - InitialBehaviour not working

4 Answers 247 Views
Window
This is a migrated thread and some comments may be shown as answers.
pbarron
Top achievements
Rank 1
pbarron asked on 01 Sep 2008, 02:11 PM
Hi,

I'm using the RadWindows however when I try to set up an intialBehaviour so that the window starts off pinned when opened it doesn't work.
Any ideas what I'm doing wrong?

<telerik:RadWindowManager ID="RadWindowManager1" ShowContentDuringLoad="false" runat="server" Left="30" VisibleTitlebar="false" VisibleStatusbar="false" PreserveClientState="false">
<Windows>
<telerik:RadWindow Skin="Default" ID="Students" runat="server" Title="Assessment students" OpenerElementID="link4" Behaviors="Close, Move, Pin" VisibleTitlebar="true" Modal="true" ReloadOnShow="true" KeepInScreenBounds="true" InitialBehaviors="Pin" />
</Windows>
</telerik:RadWindowManager>

4 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 02 Sep 2008, 06:56 AM
Hi,
The value of the property InitialBehavior applies only to windows which have their visibleonpageload property set to true. Try setting VisibleOnPageLoad="true" in the tag of your RadWindow.

ASPX:
 <telerik:RadWindow ID="RadWindow1"  VisibleOnPageLoad="true" InitialBehaviors="pin"   runat="server"
        </telerik:RadWindow> 

Thanks
Shinu
0
pbarron
Top achievements
Rank 1
answered on 02 Sep 2008, 08:28 AM
Hi Shinu,

Whilst this does work it also has the unwelcome effect of opening the radwindow as soon as the parent page loads.

Surely there must be a way of setting the default behaviours without the radwindow automatically opening?
0
Georgi Tunev
Telerik team
answered on 03 Sep 2008, 08:21 AM
Hi pbarron,

As Shinu said, Initial Behaviors will work only if the RadWindow is opened from the server (e.g. VisibleOnPageLoad is set to true). If you want to have a maximized RadWindow when opening it from the client, you need to use the maximize() method.


Best wishes,
Georgi Tunev
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Shinu
Top achievements
Rank 2
answered on 03 Sep 2008, 10:09 AM
Hi pbarron,

InitialBehaviors property controls the state of the window when it first appears. You can go through the following help article to get more details .
Initial Window State

Shinu.
Tags
Window
Asked by
pbarron
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
pbarron
Top achievements
Rank 1
Georgi Tunev
Telerik team
Share this question
or