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

RadFormDecorator and RadMultiPage

1 Answer 23 Views
FormDecorator
This is a migrated thread and some comments may be shown as answers.
Orlando
Top achievements
Rank 1
Orlando asked on 03 Jul 2012, 10:01 PM
Hello, i need to know if is possible that FormDecorator change the style of the pages of the multipage. i have a tabstrip with multipage and a radpageview. The tabs has contenturl that is loaded dynamically  when clicks the tab. How can i put a formdecorator in this case?

here some code 

<telerik:RadAjaxLoadingPanel runat="server" ID="LoadingPanel1" Height="75px" Width="75px">
</telerik:RadAjaxLoadingPanel>
<telerik:RadTabStrip ID="RadTabStrip1" SelectedIndex="0" CssClass="tabStrip" runat="server"
    MultiPageID="RadMultiPage1" Skin="Default" AutoPostBack="true" ShowBaseLine="True"
    ClickSelectedTab="True" OnTabClick="RadTabStrip1_TabClick">
</telerik:RadTabStrip>
<telerik:RadAjaxManager runat="server" ID="RadAjaxManagerProxy1">
    <AjaxSettings>
        <telerik:AjaxSetting AjaxControlID="RadTabStrip1">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="RadTabStrip1" />
                <telerik:AjaxUpdatedControl ControlID="RadMultiPage1" />
            </UpdatedControls>
        </telerik:AjaxSetting>
        <telerik:AjaxSetting AjaxControlID="RadMultiPage1">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="RadTabStrip1" />
                <telerik:AjaxUpdatedControl ControlID="RadMultiPage1" />
            </UpdatedControls>
        </telerik:AjaxSetting>
    </AjaxSettings>
</telerik:RadAjaxManager>
<telerik:RadMultiPage ID="RadMultiPage1" runat="server" SelectedIndex="0" CssClass="radMultiPage"
    BorderColor="Azure" BorderWidth="1" Height="99%" Width="100%">
    <telerik:RadPageView ID="RadPageView1" runat="server" Height="100%" Width="100%">
    </telerik:RadPageView>
</telerik:RadMultiPage>
<telerik:RadScriptBlock ID="radscriptBlock" runat="server">
    <script type="text/javascript">
        setTimeout("setPanelHeight()", 0);
         
        function setPanelHeight() {
            var heightTab = 0;
            heightTab = $("#ctl00_cphWorkWindow_tabStrip_ctl00_cphWorkWindow_tabStrip_RadTabStrip1Panel").outerHeight();
            var height = $(window).height();
            $("#ctl00_cphWorkWindow_tabStrip_ctl00_cphWorkWindow_tabStrip_RadMultiPage1Panel").height(height - heightTab - 80);
        }
    </script>
</telerik:RadScriptBlock>


regards,
Orlando.


1 Answer, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 06 Jul 2012, 07:12 AM
Hello,

The requested feature is not supported by RadFormDecorator because the ContentUrl property loads another page in the RadPageView's iframe container. Since the page is loaded from another location/site, it is not allowed by the browser itself to modify via CSS or JavaScript the stylesheet of the other site.

Best regards,
Rumen
the Telerik team
Explore the entire set of ASP.NET AJAX controls we offer here and browse the myriad online demos to learn more about the components and the features they incorporate.
Tags
FormDecorator
Asked by
Orlando
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Share this question
or