RadFormDecorator and RadMultiPage

2 posts, 0 answers
  1. Orlando
    Orlando avatar
    5 posts
    Member since:
    Jun 2011

    Posted 03 Jul 2012 Link to this post

    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.


  2. Rumen
    Admin
    Rumen avatar
    12846 posts

    Posted 06 Jul 2012 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top