Hi Telerik,
I am trying to re-create a RadWindow using a Content Template -- Previously, I had it created using a Navigate Url. I am finding that the RadFormDecorator isn't wanting to apply properly in this scenario?
My code:
I know the Telerik guide says not to place RadWindows with ContentTemplate inside of the RadWindowManager, but I rather like keeping the things grouped "master page -> slave page"-esque. I haven't noted any troubles with this setup yet, but if I encounter them I will reconsider that implementation.
Nevertheless, the DecorationZoneID doesn't seem to be forcing the RadWindow to become decorated. When I do not use a DecorationZoneID other things go wrong on my page, however, so I am hoping to be able to use this to target the appropriate window. The thought is that I don't actually want to decorate my base page, just the pop-up window, but now the pop-up window is part of the base page.. so, yeah.
What am I doing wrong with my implementation? Thanks.
Sean
EDIT: It seems its something to do with the DecorationZone. If I remove that it decorates the control properly.
Moreover, if I wrap the RadWindowManager in a div with ID "RadWindowsWrapper", and then set the DecorationZoneID="RadWindowsWrapper" I get -some- of the styling, but not all? I see my fieldset gain rounded corners, but it did not color properly. It colors properly if I remove the DecorationZoneID.
I am trying to re-create a RadWindow using a Content Template -- Previously, I had it created using a Navigate Url. I am finding that the RadFormDecorator isn't wanting to apply properly in this scenario?
My code:
<telerik:RadFormDecorator ID="RadFormDecorator1" Runat="server" DecoratedControls="All" DecorationZoneID="UploadDashboardWindow" Skin="Web20" /><telerik:RadWindowManager ID="RadWindowManager1" Runat="Server" Skin="Web20" Modal="True" KeepInScreenBounds="True" EnableShadow="True" Behaviors="Close, Move" VisibleStatusbar="False" ReloadOnShow="True" ShowContentDuringLoad="False" Behavior="Close, Move" Title="Confirm Action" IconUrl="~/Content/Dashboard/Icons/radwindow_confirmdelete.png"> <Windows> <telerik:RadWindow ID="HistoricalLocalSettingsWindow" Runat="Server" NavigateUrl="~/Dashboard/Dialog/Windows/HistoricalLocalSettings.aspx" OnClientShow="OnLocalSettingsShow" OnClientClose="OnHistoricalLocalSettingsClose" OnClientAutoSizeEnd="OnClientAutoSizeEnd" IconUrl="~/Content/Dashboard/Icons/radwindow_settings.png" Title="Settings" Width="450px" AutoSize="True" AutoSizeBehaviors="Height" /> <telerik:RadWindow ID="DashboardGlobalSettingsWindow" Runat="Server" NavigateUrl="~/Dashboard/Dialog/Windows/DashboardGlobalSettings.aspx" OnClientShow="OnDashboardGlobalSettingsShow" OnClientClose="OnDashboardGlobalSettingsClose" IconUrl="~/Content/Dashboard/Icons/radwindow_settings.png" OnClientAutoSizeEnd="OnClientAutoSizeEnd" Title="Global Settings" MinHeight="337px" Height="337px" Width="450px" /> <telerik:RadWindow ID="CustomLocalSettingsWindow" Runat="Server" NavigateUrl="~/Dashboard/Dialog/Windows/CustomLocalSettings.aspx" OnClientShow="OnLocalSettingsShow" OnClientClose="OnCustomLocalSettingsClose" IconUrl="~/Content/Dashboard/Icons/radwindow_settings.png" OnClientAutoSizeEnd="OnClientAutoSizeEnd" Title="Settings" Width="450px" Height="215px" /> <telerik:RadWindow ID="ReportWindow" Runat="Server" Title="CableSolve Report Viewer" Width="600" Height="500" OnClientClose="OnReportWindowClose" /> <telerik:RadWindow ID="UploadDashboardWindow" Runat="Server" IconUrl="~/Content/Dashboard/Icons/drive-upload.png" OnClientClose="OnUploadDashboardClose" OnClientAutoSizeEnd="OnClientAutoSizeEnd" Title="Upload Dashboard" Height="150"> <ContentTemplate> <fieldset id="Upload Dashboard"> <legend>Upload Dashboard</legend> <telerik:RadUpload ID="RadUpload1" Runat="server" AllowedFileExtensions=".xml" Skin="Web20" MaxFileInputsCount="1" ControlObjectsVisibility="None" Height="40px" Width="230px" BorderWidth="0px" > </telerik:RadUpload> <div class="BottomButton"> <telerik:RadButton ID="RadButton1" Runat="server" Skin="Web20" Text="Upload"/> </div> </fieldset> </ContentTemplate> </telerik:RadWindow> </Windows></telerik:RadWindowManager>I know the Telerik guide says not to place RadWindows with ContentTemplate inside of the RadWindowManager, but I rather like keeping the things grouped "master page -> slave page"-esque. I haven't noted any troubles with this setup yet, but if I encounter them I will reconsider that implementation.
Nevertheless, the DecorationZoneID doesn't seem to be forcing the RadWindow to become decorated. When I do not use a DecorationZoneID other things go wrong on my page, however, so I am hoping to be able to use this to target the appropriate window. The thought is that I don't actually want to decorate my base page, just the pop-up window, but now the pop-up window is part of the base page.. so, yeah.
What am I doing wrong with my implementation? Thanks.
Sean
EDIT: It seems its something to do with the DecorationZone. If I remove that it decorates the control properly.
Moreover, if I wrap the RadWindowManager in a div with ID "RadWindowsWrapper", and then set the DecorationZoneID="RadWindowsWrapper" I get -some- of the styling, but not all? I see my fieldset gain rounded corners, but it did not color properly. It colors properly if I remove the DecorationZoneID.