Panel + ReportViewer

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1

    Panel + ReportViewer



    I'm want to make ReportViewer on <ext:Panel ... Report Change when changes date in DatePicker.

     <ext:Window 
                ID="CalendarWindow" 
                runat="server" 
                MinWidth="198" 
                MinHeight="230" 
                Resizable="false" 
                Title="???????? ????" 
                Show&#111;nload="false" 
                BodyStyle="padding:3px;">
                <Body>
                    <ext:DatePicker ID="dpDateCalendar" runat="server">               
                        <AjaxEvents>
                           <Select Success="Calendarwindow.close();" OnEvent="dpDateCalendar_SelectionChanged">
                            </Select>
                        </AjaxEvents>
                    </ext:DatePicker>
                </Body>        
           </ext:Window>
    
    
    .
    
    .
    
     <ext:Panel 
                        ID="pnlReport" 
                        runat="server" 
                        Height="400px" 
                        Width="900px"
                        Title="??????? ???????"
                        BodyStyle="padding:5px;">
                        <Body>
                            <rsweb:ReportViewer ID="reportViewerMain" runat="server"  Width="100%">
                            </rsweb:ReportViewer>
                        </Body>
                        <LoadMask ShowMask="true" Msg="Report generated..." />
                    </ext:Panel>


    On Server part..


      protected void dpDateCalendar_SelectionChanged(object sender, EventArgs e)
        {
            Coolite.Ext.Web.DatePicker picker = (Coolite.Ext.Web.DatePicker)sender;
            this.SelectedDateInSession = picker.SelectedDate;
            this.SetCalendar();
            this.SetBalance();
    
            this.MainReportBulder(DBUtil.GetMainReportData(SelectedDateInSession, SessionProfile.SelectedShopID, Application));
            this.reportViewerMain.LocalReport.Refresh();
            //pnlReport.Reload();  <==show ERROR when place it!!
        }


    How to make it works?? 
  2. #2

    RE: Panel + ReportViewer

    Can i reload panel with control or it must be .aspx page? 

Similar Threads

  1. Replies: 5
    Last Post: Apr 28, 2012, 5:21 AM
  2. Replies: 7
    Last Post: Apr 26, 2012, 5:39 PM
  3. Replies: 1
    Last Post: Jan 31, 2012, 8:45 AM
  4. ReportViewer error when add a report
    By cmujica in forum 1.x Help
    Replies: 6
    Last Post: Jan 06, 2012, 6:28 PM
  5. Replies: 8
    Last Post: Apr 01, 2010, 6:25 PM

Posting Permissions