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

Setting width of RadWindow from Code

1 Answer 374 Views
Window
This is a migrated thread and some comments may be shown as answers.
ITC
Top achievements
Rank 1
ITC asked on 11 May 2012, 08:58 AM
Hi 

I am having issues setting the RadWindow.Alert window from Code. The method I tried is as follows:

RadWindow.Confirm(
                new DialogParameters
                    {
                        Content = new ContentControl { Width = 800, Height = 600, Content = editorView },
                        DialogStartupLocation = WindowStartupLocation.CenterScreen,
                        Closed = (sender, e) => this.AddChartSeriesGroupClosed(sender, e, newChartSeriesGroup),
                    });

The window size using the above code seems to be 400x600 which is coincidental i.e. it is the size regardless of the Width and Height values used above. I have tried MinWidth and MinHeight as well.

Any ideas?

1 Answer, 1 is accepted

Sort by
0
Yana
Telerik team
answered on 16 May 2012, 10:58 AM
Hello Dirk,

In order to change the Width of the Confirm window, you should create a custom style. The approach is explained in this article.

Regards,
Yana
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
Window
Asked by
ITC
Top achievements
Rank 1
Answers by
Yana
Telerik team
Share this question
or