Essential Studio for Asp.Net | Demos

SHOWCASE SAMPLES
Showcase samples
    ReportViewer / DataBindingLocal
    <%@ Page Title="ReportViewer-Local Data-ASP.NET-SYNCFUSION"   Language="C#" MasterPageFile="~/Samplebrowser.Master" AutoEventWireup="true" CodeBehind="DataBindingLocal.aspx.cs" Inherits="WebSampleBrowser.ReportViewer.DataBindingLocal" %>
    
    <asp:Content ID="Content1" ContentPlaceHolderID="SampleHeading" runat="server">
        <span class="sampleName">ReportViewer / DataBindingLocal</span>
    </asp:Content>
    
    <asp:Content ID="ControlContent" runat="server" ContentPlaceHolderID="ControlsSection">     
        <div style="width:100%;height:100%;">                  
            <ej:ReportViewer ClientIDMode="Static" id="ReportViewer1" runat="server" reportpath="~/App_Data/Reports/IndicatorReport.rdlc" ProcessingMode="Local"> 
            </ej:ReportViewer>
        </div>
    </asp:Content>
    
    <asp:Content ID="Content2" runat="server" ContentPlaceHolderID="ScriptSection">
        <style type="text/css">
        #ReportViewer1 {
            width: 980px;
            height:650px;
        }
    </style>
    </asp:Content>
    
    
    
    using Syncfusion.JavaScript.Models.ReportViewer;
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Web;
    using System.Web.UI;
    using System.Web.UI.WebControls;
    using WebSampleBrowser.ReportViewer.Models;
    
    namespace WebSampleBrowser.ReportViewer
    {
        public partial class DataBindingLocal : System.Web.UI.Page
        {
            protected void Page_Load(object sender, EventArgs e)
            {
                List<ReportDataSource> rptDatasources = new List<ReportDataSource>();
    
                ReportDataSource rptDatasource1 = new ReportDataSource();
                rptDatasource1.Name = "DataSet1";
                rptDatasource1.Value = Billionaires.GetList_2012();
                rptDatasources.Add(rptDatasource1);
    
                ReportDataSource rptDatasource2 = new ReportDataSource();
                rptDatasource2.Name = "DataSet2";
                rptDatasource2.Value = Billionaires.GetList_2013();
                rptDatasources.Add(rptDatasource2);
    
                ReportDataSource rptDatasource3 = new ReportDataSource();
                rptDatasource3.Name = "DataSet3";
                rptDatasource3.Value = Indicator.GetIndicator();
                rptDatasources.Add(rptDatasource3);
    
                this.ReportViewer1.DataSources = rptDatasources;
                this.ReportViewer1.ReportServiceUrl = VirtualPathUtility.ToAbsolute("~/api/RDLCReport");
            }
        }
    }