<script>
function onChange(args) {
var url = document.URL;
$("#container").ejReportViewer(
{
reportServiceUrl: url + 'api/ReportApi',
processingMode: ej.ReportViewer.ProcessingMode.Local,
reportPath: '~/App_Data/' + args.selectedText
});
}
</script> |
public void OnInitReportOptions(ReportViewerOptions reportOption)
{
reportOption.ReportModel.DataSources.Clear();
reportOption.ReportModel.DataSources.Add(new ReportDataSource { Name = "Sales", Value = SalesDetails.GetData() });
} |