Want everthing but the SSRS ReportViewer to use FormDecorator

2 posts, 0 answers
  1. Tom
    Tom avatar
    18 posts
    Member since:
    Nov 2011

    Posted 18 Apr 2011 Link to this post

    I have a screen with a slider area that shows an SSRS report and I don't want the report or the entire report viewer to use the form decorator code as it is messing up the report.  Please help asap.

     

     

     

     

    <%@ Page Language="C#" AutoEventWireup="True" Inherits="HotelIQ.Report.AnalysisViewer"
        CodeBehind="AnalysisViewer.aspx.cs" %>
      
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
    <html>
    <head id="Head1" runat="server"/>
    <body id="body" runat="server" leftmargin="0" topmargin="0" rightmargin="0" bottommargin="0"
        style="background-color: #333333">
        <form id="form1" runat="server">
        <telerik:RadScriptManager runat="server" ID="RadScriptManager1">
        </telerik:RadScriptManager>
        <telerik:RadStyleSheetManager runat="server" ID="RadStyleSheet1" />
        <telerik:RadFormDecorator runat="server" ID="RadFormDecorator1" DecoratedControls="All"/>
        <telerik:RadSplitter ID="RadSplitter1" runat="server" Height="99%" Width="100%">
            <telerik:RadPane ID="LeftPane" runat="server" Width="22" Scrolling="None">
                <div id="Zone1" runat="server">
                    <telerik:RadSlidingZone ID="SlidingZone1" runat="server" Width="22" DockedPaneId="rspParameters">
                        <telerik:RadSlidingPane ID="rspParameters" Title="Parameters" runat="server" Width="400"
                            Height="100%">
                             <telerik:RadMenu ID="rmReport" runat="server" Width="100%" OnItemClick="rmReport_ItemClick">
                                <Items>
                                    <telerik:RadMenuItem runat="server" Text="Parameters">
                                        <Items>
                                            <telerik:RadMenuItem runat="server" Text="Save">
                                            </telerik:RadMenuItem>
                                            <telerik:RadMenuItem runat="server" Text="Clear">
                                            </telerik:RadMenuItem>
                                        </Items>
                                    </telerik:RadMenuItem>
                                    <telerik:RadMenuItem runat="server" Text="View Analysis">
                                    </telerik:RadMenuItem>
                                    <telerik:RadMenuItem runat="server" Text="About">
                                    </telerik:RadMenuItem>
                                </Items>
                            </telerik:RadMenu>
                            <table style="font-family: Tahoma; font-size: 10px" width="100%">
                                <tr>
                                    <td colspan="2">
                                        <asp:RadioButtonList ID="rblHotelPortfolio" runat="server" RepeatDirection="Horizontal"
                                            AutoPostBack="True" Font-Size="10" Width="100%" OnSelectedIndexChanged="rblHotelPortfolio_SelectedIndexChanged">
                                            <asp:ListItem Text="Hotel" Selected="True" Value="Hotel">
                                            </asp:ListItem>
                                            <asp:ListItem Text="Portfolio" Value="Portfolio">
                                            </asp:ListItem>
                                        </asp:RadioButtonList>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <asp:Label runat="server" ID="lblHotelPortBrand" AssociatedControlID="wcHotelPortBrand"
                                            Text="Hotel/Portfolio" /> 
                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="wcHotelPortBrand"
                                            ErrorMessage="Required" CssClass="text">Required</asp:RequiredFieldValidator>
                                    </td>
                                    <td>
                                        <telerik:RadComboBox ID="wcHotelPortBrand" runat="server" DataSourceID="sdsHotel"
                                            DataTextField="Selection_Nm" DataValueField="Selection_Id">
                                        </telerik:RadComboBox>
                                    </td>
                                </tr>
                                 <tr>
                                    <td colspan="2">
                                        <hr />
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <asp:Label runat="server" ID="Label10" AssociatedControlID="txtStartDate">Start Date</asp:Label>
                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="txtStartDate"
                                            ErrorMessage="Required" CssClass="text">Required</asp:RequiredFieldValidator>
                                    </td>
                                    <td>
                                        <asp:Label runat="server" ID="Label11" AssociatedControlID="txtEndDate">End Date</asp:Label>
                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtEndDate"
                                            ErrorMessage="Required" CssClass="text">Required</asp:RequiredFieldValidator>
                                    </td>
                                </tr>
                                <tr>
                                                <td>
                                                    <telerik:RadDatePicker ID="txtStartDate" MinDate="2009/1/1" runat="server" OnSelectedDateChanged="txtStartDate_TextChanged"
                                                        AutoPostBack="true">
                                                    </telerik:RadDatePicker>
                                                </td>
                                    <td>
                                        <telerik:RadDatePicker ID="txtEndDate" MinDate="2009/1/1" runat="server">
                                        </telerik:RadDatePicker>
                                    </td>
                                </tr>
                            </table>
                        </telerik:RadSlidingPane>
                    </telerik:RadSlidingZone>
                </div>
            </telerik:RadPane>
            <telerik:RadSplitBar ID="RadSplitbar1" runat="server" SkinID="Black">
            </telerik:RadSplitBar>
            <telerik:RadPane ID="ReportPane" runat="server">
                    <rsweb:ReportViewer ID="rptViewer" runat="server" ShowPrintButton="true" Height="99%"
                        Width="100%" ShowRefreshButton="False" ShowParameterPrompts="false" AsyncRendering="True"
                        DocumentMapCollapsed="True" Enabled="True" ExportContentDisposition="AlwaysAttachment">
                    </rsweb:ReportViewer>
            </telerik:RadPane>
        </telerik:RadSplitter>
        </form>
    </body>
    </html>

     

  2. Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 19 Apr 2011 Link to this post

    Hi Tom,

    You can limit the area of the page that is affected by RadFormDecorator by using Decoration Zone. Just wrap the portion of the page which you want to be decorated in some container (DIV / SPAN for example) with an ID and set that ID in the DecorationZoneID property.

    Greetings,
    Georgi Tunev
    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