BoldSignA modern eSignature application with affordable pricing. Sign up today for unlimited document usage!
ej.ReportViewer.prototype._viewReportParamsClick = function (event) {
var proxy = $('#reportsample').data('ejReportViewer');
var parameters = event.data.params;
var reportParams = proxy._getParameterJson(parameters);
proxy._refresh = true;
$('#' + proxy._id + '_viewBlockContainer .e-reportviewer-viewerblockcontent table:first').attr('isviewclick', 'true');
_params = reportParams;
proxy._refreshReport();
} |
public void OnReportLoaded(ReportViewerOptions reportOption)
{
var parameters = new List<Syncfusion.Reports.EJ.ReportParameter>();
if (System.Web.HttpContext.Current.Items.Contains("parakey"))
{
parameters = new System.Web.Script.Serialization.JavaScriptSerializer().Deserialize<List<Syncfusion.Reports.EJ.ReportParameter>>(System.Web.HttpContext.Current.Items["parakey"].ToString());
System.Web.HttpContext.Current.Items.Remove("parakey");
}
reportOption.ReportModel.Parameters = parameters;
if (parameters != null && parameters.Count > 0)
{
reportOption.ReportModel.DataSources.Clear();
reportOption.ReportModel.DataSources.Add(new ReportDataSource { Name = "StoreSales", Value = StoreSales.GetData(parameters[0].Values[0]) });
}
else
{
reportOption.ReportModel.DataSources.Clear();
reportOption.ReportModel.DataSources.Add(new ReportDataSource { Name = "StoreSales", Value = StoreSales.GetData("GA") });
}
} |