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

set size and more behaviors from code behind

1 Answer 124 Views
Window
This is a migrated thread and some comments may be shown as answers.
sf
Top achievements
Rank 1
sf asked on 27 Oct 2009, 10:42 AM
hi in javascript we can have "oWnd.setSize(800, 600);
oWnd.set_behaviors(Telerik.Web.UI.WindowBehaviors.Move + Telerik.Web.UI.WindowBehaviors.Maximize + Telerik.Web.UI.WindowBehaviors.Close)
" to add the size and multiple behaviors.

Is it possible to do all these in code behind?  Here is my code to open the window from code behind

RadWindow rw = radwindowmanager1.Windows[0];        
        rw.OpenerElementID = label1.ClientID;
        rw.NavigateUrl = "page1.aspx?abc=" + strID;

thanks in advance!

1 Answer, 1 is accepted

Sort by
0
Georgi Tunev
Telerik team
answered on 27 Oct 2009, 12:22 PM
Hi sf,

Yes, this is possible by using the server-side API
rw.Width = Unit.Pixel(800);
rw.Height = Unit.Pixel(600);
rw.Behaviors = WindowBehaviors.Move & WindowBehaviors.Maximize & WindowBehaviors.Close;


Kind regards,
Georgi Tunev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Window
Asked by
sf
Top achievements
Rank 1
Answers by
Georgi Tunev
Telerik team
Share this question
or