#pragma warning disable 1998 public async override global::System.Threading.Tasks.Task ExecuteAsync() { DefineSection("SampleHeading", async() => { BeginContext(54, 49, true); WriteLiteral("<span class=\"sampleName\">PivotGrid / Olap</span> "); EndContext(); } ); DefineSection("MetaTags", async() => { BeginContext(124, 170, true); WriteLiteral("\r\n <meta name=\"description\" content=\"This demo for Syncfusion Essential JS1 for ASP.NET Core Pivot Grid control shows how to bind OLAP Cube data from SSAS (XML/A).\">\r\n"); EndContext(); } ); DefineSection("ControlsSection", async() => { BeginContext(322, 2, true); WriteLiteral("\r\n"); EndContext(); BeginContext(324, 904, false); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("ej-pivot-grid", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "15e45f01937a4fecb928229930cca21c", async() => { BeginContext(376, 6, true); WriteLiteral("\r\n "); EndContext(); BeginContext(382, 828, false); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("e-data-source", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "10345b7b3db048d18bd7fe657ea33206", async() => { BeginContext(502, 10, true); WriteLiteral("\r\n "); EndContext(); BeginContext(512, 125, false); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("e-pivot-rows", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "d506657cc502449dab889aa8c0486373", async() => { BeginContext(526, 14, true); WriteLiteral("\r\n "); EndContext(); BeginContext(540, 72, false); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("e-row-field", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "8b718d461e1f43dfb140f7e875ec1b5a", async() => { } ); __Syncfusion_JavaScript_Models_Field = CreateTagHelper <global::Syncfusion.JavaScript.Models.Field>(); __tagHelperExecutionContext.Add(__Syncfusion_JavaScript_Models_Field); __Syncfusion_JavaScript_Models_Field.FieldName = (string)__tagHelperAttribute_0.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_0); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); if (!__tagHelperExecutionContext.Output.IsContentModified) { await __tagHelperExecutionContext.SetOutputContentAsync(); } Write(__tagHelperExecutionContext.Output); __tagHelperExecutionContext = __tagHelperScopeManager.End(); EndContext(); BeginContext(612, 10, true); WriteLiteral("\r\n "); EndContext(); } ); __Syncfusion_JavaScript_PivotGridTagHelperMocks = CreateTagHelper <global::Syncfusion.JavaScript.PivotGridTagHelperMocks>(); __tagHelperExecutionContext.Add(__Syncfusion_JavaScript_PivotGridTagHelperMocks); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); if (!__tagHelperExecutionContext.Output.IsContentModified) { await __tagHelperExecutionContext.SetOutputContentAsync(); } Write(__tagHelperExecutionContext.Output); __tagHelperExecutionContext = __tagHelperScopeManager.End(); EndContext(); BeginContext(637, 10, true); WriteLiteral("\r\n "); EndContext(); BeginContext(647, 136, false); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("e-pivot-columns", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "00f6a9d761074e7abba094867ea6edc2", async() => { BeginContext(664, 14, true); WriteLiteral("\r\n "); EndContext(); BeginContext(678, 77, false); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("e-column-field", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "e095bf528b344f0682e1c18d308e79a9", async() => { } ); __Syncfusion_JavaScript_Models_Field = CreateTagHelper <global::Syncfusion.JavaScript.Models.Field>(); __tagHelperExecutionContext.Add(__Syncfusion_JavaScript_Models_Field); __Syncfusion_JavaScript_Models_Field.FieldName = (string)__tagHelperAttribute_1.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_1); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); if (!__tagHelperExecutionContext.Output.IsContentModified) { await __tagHelperExecutionContext.SetOutputContentAsync(); } Write(__tagHelperExecutionContext.Output); __tagHelperExecutionContext = __tagHelperScopeManager.End(); EndContext(); BeginContext(755, 10, true); WriteLiteral("\r\n "); EndContext(); } ); __Syncfusion_JavaScript_PivotGridTagHelperMocks = CreateTagHelper <global::Syncfusion.JavaScript.PivotGridTagHelperMocks>(); __tagHelperExecutionContext.Add(__Syncfusion_JavaScript_PivotGridTagHelperMocks); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); if (!__tagHelperExecutionContext.Output.IsContentModified) { await __tagHelperExecutionContext.SetOutputContentAsync(); } Write(__tagHelperExecutionContext.Output); __tagHelperExecutionContext = __tagHelperScopeManager.End(); EndContext(); BeginContext(783, 10, true); WriteLiteral("\r\n "); EndContext(); BeginContext(793, 395, false); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("e-pivot-values", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "05c874e0da3c42b090673cbe8e43ea3b", async() => { BeginContext(809, 14, true); WriteLiteral("\r\n "); EndContext(); BeginContext(823, 338, false); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("e-value-field", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "a5823d1ed03b4b82997da66072637910", async() => { BeginContext(852, 18, true); WriteLiteral("\r\n "); EndContext(); BeginContext(870, 261, false); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("e-measures", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "a83882cf9a764c5ca5610d2f7bf5a84d", async() => { BeginContext(882, 22, true); WriteLiteral("\r\n "); EndContext(); BeginContext(904, 83, false); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("e-measure-items", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "9ed63087550a4dc384ffee56856df3f2", async() => { } ); __Syncfusion_JavaScript_Models_MeasuresItems = CreateTagHelper <global::Syncfusion.JavaScript.Models.MeasuresItems>(); __tagHelperExecutionContext.Add(__Syncfusion_JavaScript_Models_MeasuresItems); __Syncfusion_JavaScript_Models_MeasuresItems.FieldName = (string)__tagHelperAttribute_2.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_2); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); if (!__tagHelperExecutionContext.Output.IsContentModified) { await __tagHelperExecutionContext.SetOutputContentAsync(); } Write(__tagHelperExecutionContext.Output); __tagHelperExecutionContext = __tagHelperScopeManager.End(); EndContext(); BeginContext(987, 22, true); WriteLiteral("\r\n "); EndContext(); BeginContext(1009, 91, false); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("e-measure-items", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "1d7a7bfb8caf453a9a3728079c26d9ad", async() => { } ); __Syncfusion_JavaScript_Models_MeasuresItems = CreateTagHelper <global::Syncfusion.JavaScript.Models.MeasuresItems>(); __tagHelperExecutionContext.Add(__Syncfusion_JavaScript_Models_MeasuresItems); __Syncfusion_JavaScript_Models_MeasuresItems.FieldName = (string)__tagHelperAttribute_3.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_3); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); if (!__tagHelperExecutionContext.Output.IsContentModified) { await __tagHelperExecutionContext.SetOutputContentAsync(); } Write(__tagHelperExecutionContext.Output); __tagHelperExecutionContext = __tagHelperScopeManager.End(); EndContext(); BeginContext(1100, 18, true); WriteLiteral("\r\n "); EndContext(); } ); __Syncfusion_JavaScript_PivotGridTagHelperMocks = CreateTagHelper <global::Syncfusion.JavaScript.PivotGridTagHelperMocks>(); __tagHelperExecutionContext.Add(__Syncfusion_JavaScript_PivotGridTagHelperMocks); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); if (!__tagHelperExecutionContext.Output.IsContentModified) { await __tagHelperExecutionContext.SetOutputContentAsync(); } Write(__tagHelperExecutionContext.Output); __tagHelperExecutionContext = __tagHelperScopeManager.End(); EndContext(); BeginContext(1131, 14, true); WriteLiteral("\r\n "); EndContext(); } ); __Syncfusion_JavaScript_Models_Field = CreateTagHelper <global::Syncfusion.JavaScript.Models.Field>(); __tagHelperExecutionContext.Add(__Syncfusion_JavaScript_Models_Field); #line 16 "D:\Samples_17.2.0.46\ASPNETCORE\samplebrowser_core_2_0\Views\PivotGrid\Olap.cshtml" __Syncfusion_JavaScript_Models_Field.Axis = global::Syncfusion.JavaScript.AxisName.Column; #line default #line hidden __tagHelperExecutionContext.AddTagHelperAttribute("axis", __Syncfusion_JavaScript_Models_Field.Axis, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); if (!__tagHelperExecutionContext.Output.IsContentModified) { await __tagHelperExecutionContext.SetOutputContentAsync(); } Write(__tagHelperExecutionContext.Output); __tagHelperExecutionContext = __tagHelperScopeManager.End(); EndContext(); BeginContext(1161, 10, true); WriteLiteral("\r\n "); EndContext(); } ); __Syncfusion_JavaScript_PivotGridTagHelperMocks = CreateTagHelper <global::Syncfusion.JavaScript.PivotGridTagHelperMocks>(); __tagHelperExecutionContext.Add(__Syncfusion_JavaScript_PivotGridTagHelperMocks); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); if (!__tagHelperExecutionContext.Output.IsContentModified) { await __tagHelperExecutionContext.SetOutputContentAsync(); } Write(__tagHelperExecutionContext.Output); __tagHelperExecutionContext = __tagHelperScopeManager.End(); EndContext(); BeginContext(1188, 6, true); WriteLiteral("\r\n "); EndContext(); } ); __Syncfusion_JavaScript_Models_PivotDataSource = CreateTagHelper <global::Syncfusion.JavaScript.Models.PivotDataSource>(); __tagHelperExecutionContext.Add(__Syncfusion_JavaScript_Models_PivotDataSource); __Syncfusion_JavaScript_Models_PivotDataSource.Catalog = (string)__tagHelperAttribute_4.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_4); __Syncfusion_JavaScript_Models_PivotDataSource.Cube = (string)__tagHelperAttribute_5.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_5); __Syncfusion_JavaScript_Models_PivotDataSource.Data = (string)__tagHelperAttribute_6.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_6); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); if (!__tagHelperExecutionContext.Output.IsContentModified) { await __tagHelperExecutionContext.SetOutputContentAsync(); } Write(__tagHelperExecutionContext.Output); __tagHelperExecutionContext = __tagHelperScopeManager.End(); EndContext(); BeginContext(1210, 2, true); WriteLiteral("\r\n"); EndContext(); } ); __Syncfusion_JavaScript_Models_PivotGridProperties = CreateTagHelper <global::Syncfusion.JavaScript.Models.PivotGridProperties>(); __tagHelperExecutionContext.Add(__Syncfusion_JavaScript_Models_PivotGridProperties); __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_7); #line 7 "D:\Samples_17.2.0.46\ASPNETCORE\samplebrowser_core_2_0\Views\PivotGrid\Olap.cshtml" __Syncfusion_JavaScript_Models_PivotGridProperties.IsResponsive = true; #line default #line hidden __tagHelperExecutionContext.AddTagHelperAttribute("is-responsive", __Syncfusion_JavaScript_Models_PivotGridProperties.IsResponsive, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); if (!__tagHelperExecutionContext.Output.IsContentModified) { await __tagHelperExecutionContext.SetOutputContentAsync(); } Write(__tagHelperExecutionContext.Output); __tagHelperExecutionContext = __tagHelperScopeManager.End(); EndContext(); BeginContext(1228, 2, true); WriteLiteral("\r\n"); EndContext(); } ); DefineSection("StyleSection", async() => { BeginContext(1255, 223, true); WriteLiteral("\r\n <style>\r\n #PivotGrid1 {\r\n width: 100%;\r\n height: 350px;\r\n overflow: auto;\r\n }\r\n .cols-sample-area {\r\n width: 100% !important;\r\n }\r\n </style>\r\n"); EndContext(); } ); }
#pragma warning disable 1998 public async override global::System.Threading.Tasks.Task ExecuteAsync() { DefineSection("SampleHeading", async() => { BeginContext(54, 49, true); WriteLiteral("<span class=\"sampleName\">PivotGrid / Olap</span> "); EndContext(); } ); DefineSection("MetaTags", async() => { BeginContext(124, 170, true); WriteLiteral("\r\n <meta name=\"description\" content=\"This demo for Syncfusion Essential JS1 for ASP.NET Core Pivot Grid control shows how to bind OLAP Cube data from SSAS (XML/A).\">\r\n"); EndContext(); } ); DefineSection("ControlsSection", async() => { BeginContext(322, 2, true); WriteLiteral("\r\n"); EndContext(); BeginContext(324, 904, false); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("ej-pivot-grid", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "865c4586ca7645ea854e3b40a4f56dc4", async() => { BeginContext(376, 6, true); WriteLiteral("\r\n "); EndContext(); BeginContext(382, 828, false); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("e-data-source", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "4bafb7c3996e40779ec3d150fe03cf31", async() => { BeginContext(502, 10, true); WriteLiteral("\r\n "); EndContext(); BeginContext(512, 125, false); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("e-pivot-rows", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "c5857de9235b45a3bf0b98d50d3a57e0", async() => { BeginContext(526, 14, true); WriteLiteral("\r\n "); EndContext(); BeginContext(540, 72, false); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("e-row-field", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "5d0aec080ba847999d812b801a531eba", async() => { } ); __Syncfusion_JavaScript_Models_Field = CreateTagHelper <global::Syncfusion.JavaScript.Models.Field>(); __tagHelperExecutionContext.Add(__Syncfusion_JavaScript_Models_Field); __Syncfusion_JavaScript_Models_Field.FieldName = (string)__tagHelperAttribute_0.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_0); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); if (!__tagHelperExecutionContext.Output.IsContentModified) { await __tagHelperExecutionContext.SetOutputContentAsync(); } Write(__tagHelperExecutionContext.Output); __tagHelperExecutionContext = __tagHelperScopeManager.End(); EndContext(); BeginContext(612, 10, true); WriteLiteral("\r\n "); EndContext(); } ); __Syncfusion_JavaScript_PivotGridTagHelperMocks = CreateTagHelper <global::Syncfusion.JavaScript.PivotGridTagHelperMocks>(); __tagHelperExecutionContext.Add(__Syncfusion_JavaScript_PivotGridTagHelperMocks); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); if (!__tagHelperExecutionContext.Output.IsContentModified) { await __tagHelperExecutionContext.SetOutputContentAsync(); } Write(__tagHelperExecutionContext.Output); __tagHelperExecutionContext = __tagHelperScopeManager.End(); EndContext(); BeginContext(637, 10, true); WriteLiteral("\r\n "); EndContext(); BeginContext(647, 136, false); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("e-pivot-columns", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "1d15930c26394deba64e98dd9b0d8851", async() => { BeginContext(664, 14, true); WriteLiteral("\r\n "); EndContext(); BeginContext(678, 77, false); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("e-column-field", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "1d1e68e6510e4685bd1fa528b450f344", async() => { } ); __Syncfusion_JavaScript_Models_Field = CreateTagHelper <global::Syncfusion.JavaScript.Models.Field>(); __tagHelperExecutionContext.Add(__Syncfusion_JavaScript_Models_Field); __Syncfusion_JavaScript_Models_Field.FieldName = (string)__tagHelperAttribute_1.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_1); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); if (!__tagHelperExecutionContext.Output.IsContentModified) { await __tagHelperExecutionContext.SetOutputContentAsync(); } Write(__tagHelperExecutionContext.Output); __tagHelperExecutionContext = __tagHelperScopeManager.End(); EndContext(); BeginContext(755, 10, true); WriteLiteral("\r\n "); EndContext(); } ); __Syncfusion_JavaScript_PivotGridTagHelperMocks = CreateTagHelper <global::Syncfusion.JavaScript.PivotGridTagHelperMocks>(); __tagHelperExecutionContext.Add(__Syncfusion_JavaScript_PivotGridTagHelperMocks); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); if (!__tagHelperExecutionContext.Output.IsContentModified) { await __tagHelperExecutionContext.SetOutputContentAsync(); } Write(__tagHelperExecutionContext.Output); __tagHelperExecutionContext = __tagHelperScopeManager.End(); EndContext(); BeginContext(783, 10, true); WriteLiteral("\r\n "); EndContext(); BeginContext(793, 395, false); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("e-pivot-values", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "3b443e311f534b21a89e9a2cc60ba67b", async() => { BeginContext(809, 14, true); WriteLiteral("\r\n "); EndContext(); BeginContext(823, 338, false); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("e-value-field", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "8ff6b58d55e648c3af14d71f02ca4b80", async() => { BeginContext(852, 18, true); WriteLiteral("\r\n "); EndContext(); BeginContext(870, 261, false); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("e-measures", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "8f8397e674f34cea81875b6dec732d9c", async() => { BeginContext(882, 22, true); WriteLiteral("\r\n "); EndContext(); BeginContext(904, 83, false); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("e-measure-items", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "427b58eae75646fa91cb55486e5962a0", async() => { } ); __Syncfusion_JavaScript_Models_MeasuresItems = CreateTagHelper <global::Syncfusion.JavaScript.Models.MeasuresItems>(); __tagHelperExecutionContext.Add(__Syncfusion_JavaScript_Models_MeasuresItems); __Syncfusion_JavaScript_Models_MeasuresItems.FieldName = (string)__tagHelperAttribute_2.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_2); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); if (!__tagHelperExecutionContext.Output.IsContentModified) { await __tagHelperExecutionContext.SetOutputContentAsync(); } Write(__tagHelperExecutionContext.Output); __tagHelperExecutionContext = __tagHelperScopeManager.End(); EndContext(); BeginContext(987, 22, true); WriteLiteral("\r\n "); EndContext(); BeginContext(1009, 91, false); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("e-measure-items", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "523348e3a3ee4fb2bd08aaa919e28ab8", async() => { } ); __Syncfusion_JavaScript_Models_MeasuresItems = CreateTagHelper <global::Syncfusion.JavaScript.Models.MeasuresItems>(); __tagHelperExecutionContext.Add(__Syncfusion_JavaScript_Models_MeasuresItems); __Syncfusion_JavaScript_Models_MeasuresItems.FieldName = (string)__tagHelperAttribute_3.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_3); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); if (!__tagHelperExecutionContext.Output.IsContentModified) { await __tagHelperExecutionContext.SetOutputContentAsync(); } Write(__tagHelperExecutionContext.Output); __tagHelperExecutionContext = __tagHelperScopeManager.End(); EndContext(); BeginContext(1100, 18, true); WriteLiteral("\r\n "); EndContext(); } ); __Syncfusion_JavaScript_PivotGridTagHelperMocks = CreateTagHelper <global::Syncfusion.JavaScript.PivotGridTagHelperMocks>(); __tagHelperExecutionContext.Add(__Syncfusion_JavaScript_PivotGridTagHelperMocks); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); if (!__tagHelperExecutionContext.Output.IsContentModified) { await __tagHelperExecutionContext.SetOutputContentAsync(); } Write(__tagHelperExecutionContext.Output); __tagHelperExecutionContext = __tagHelperScopeManager.End(); EndContext(); BeginContext(1131, 14, true); WriteLiteral("\r\n "); EndContext(); } ); __Syncfusion_JavaScript_Models_Field = CreateTagHelper <global::Syncfusion.JavaScript.Models.Field>(); __tagHelperExecutionContext.Add(__Syncfusion_JavaScript_Models_Field); #line 16 "D:\Samples_17.2.0.46\ASPNETCORE\samplebrowser_core_2_0\Views\PivotGrid\Olap.cshtml" __Syncfusion_JavaScript_Models_Field.Axis = global::Syncfusion.JavaScript.AxisName.Column; #line default #line hidden __tagHelperExecutionContext.AddTagHelperAttribute("axis", __Syncfusion_JavaScript_Models_Field.Axis, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); if (!__tagHelperExecutionContext.Output.IsContentModified) { await __tagHelperExecutionContext.SetOutputContentAsync(); } Write(__tagHelperExecutionContext.Output); __tagHelperExecutionContext = __tagHelperScopeManager.End(); EndContext(); BeginContext(1161, 10, true); WriteLiteral("\r\n "); EndContext(); } ); __Syncfusion_JavaScript_PivotGridTagHelperMocks = CreateTagHelper <global::Syncfusion.JavaScript.PivotGridTagHelperMocks>(); __tagHelperExecutionContext.Add(__Syncfusion_JavaScript_PivotGridTagHelperMocks); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); if (!__tagHelperExecutionContext.Output.IsContentModified) { await __tagHelperExecutionContext.SetOutputContentAsync(); } Write(__tagHelperExecutionContext.Output); __tagHelperExecutionContext = __tagHelperScopeManager.End(); EndContext(); BeginContext(1188, 6, true); WriteLiteral("\r\n "); EndContext(); } ); __Syncfusion_JavaScript_Models_PivotDataSource = CreateTagHelper <global::Syncfusion.JavaScript.Models.PivotDataSource>(); __tagHelperExecutionContext.Add(__Syncfusion_JavaScript_Models_PivotDataSource); __Syncfusion_JavaScript_Models_PivotDataSource.Catalog = (string)__tagHelperAttribute_4.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_4); __Syncfusion_JavaScript_Models_PivotDataSource.Cube = (string)__tagHelperAttribute_5.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_5); __Syncfusion_JavaScript_Models_PivotDataSource.Data = (string)__tagHelperAttribute_6.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_6); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); if (!__tagHelperExecutionContext.Output.IsContentModified) { await __tagHelperExecutionContext.SetOutputContentAsync(); } Write(__tagHelperExecutionContext.Output); __tagHelperExecutionContext = __tagHelperScopeManager.End(); EndContext(); BeginContext(1210, 2, true); WriteLiteral("\r\n"); EndContext(); } ); __Syncfusion_JavaScript_Models_PivotGridProperties = CreateTagHelper <global::Syncfusion.JavaScript.Models.PivotGridProperties>(); __tagHelperExecutionContext.Add(__Syncfusion_JavaScript_Models_PivotGridProperties); __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_7); #line 7 "D:\Samples_17.2.0.46\ASPNETCORE\samplebrowser_core_2_0\Views\PivotGrid\Olap.cshtml" __Syncfusion_JavaScript_Models_PivotGridProperties.IsResponsive = true; #line default #line hidden __tagHelperExecutionContext.AddTagHelperAttribute("is-responsive", __Syncfusion_JavaScript_Models_PivotGridProperties.IsResponsive, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); if (!__tagHelperExecutionContext.Output.IsContentModified) { await __tagHelperExecutionContext.SetOutputContentAsync(); } Write(__tagHelperExecutionContext.Output); __tagHelperExecutionContext = __tagHelperScopeManager.End(); EndContext(); BeginContext(1228, 2, true); WriteLiteral("\r\n"); EndContext(); } ); DefineSection("StyleSection", async() => { BeginContext(1255, 223, true); WriteLiteral("\r\n <style>\r\n #PivotGrid1 {\r\n width: 100%;\r\n height: 350px;\r\n overflow: auto;\r\n }\r\n .cols-sample-area {\r\n width: 100% !important;\r\n }\r\n </style>\r\n"); EndContext(); } ); }
#pragma warning disable 1998 public async override global::System.Threading.Tasks.Task ExecuteAsync() { DefineSection("SampleHeading", async() => { BeginContext(54, 54, true); WriteLiteral("<span class=\"sampleName\">PivotGrid / Exporting</span> "); EndContext(); } ); DefineSection("MetaTags", async() => { BeginContext(129, 165, true); WriteLiteral("\r\n <meta name=\"description\" content=\"This demo for Syncfusion Essential JS1 for ASP.NET Core Pivot Grid control demos on export to Excel, CSV and PDF formats.\">\r\n"); EndContext(); } ); DefineSection("ControlsSection", async() => { BeginContext(322, 2, true); WriteLiteral("\r\n"); EndContext(); BeginContext(324, 639, false); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("ej-pivot-grid", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "e33a5148da8147ac97504f1b33c210ff", async() => { BeginContext(421, 6, true); WriteLiteral("\r\n "); EndContext(); BeginContext(427, 518, false); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("e-data-source", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "2812d7c64974409e95294e19e3ea2717", async() => { BeginContext(442, 10, true); WriteLiteral("\r\n "); EndContext(); BeginContext(452, 148, false); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("e-pivot-rows", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "4accfbc4f9b6424da1adeaebef81b6e4", async() => { BeginContext(466, 14, true); WriteLiteral("\r\n "); EndContext(); BeginContext(480, 95, false); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("e-row-field", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "f3e0c65ab07846f3b7a401a3d9d57f66", async() => { } ); __Syncfusion_JavaScript_Models_Field = CreateTagHelper <global::Syncfusion.JavaScript.Models.Field>(); __tagHelperExecutionContext.Add(__Syncfusion_JavaScript_Models_Field); __Syncfusion_JavaScript_Models_Field.FieldName = (string)__tagHelperAttribute_0.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_0); __Syncfusion_JavaScript_Models_Field.FieldCaption = (string)__tagHelperAttribute_1.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_1); #line 10 "D:\Samples_17.2.0.46\ASPNETCORE\samplebrowser_core_2_0\Views\PivotGrid\Exporting.cshtml" __Syncfusion_JavaScript_Models_Field.ShowSubTotal = false; #line default #line hidden __tagHelperExecutionContext.AddTagHelperAttribute("show-sub-total", __Syncfusion_JavaScript_Models_Field.ShowSubTotal, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); if (!__tagHelperExecutionContext.Output.IsContentModified) { await __tagHelperExecutionContext.SetOutputContentAsync(); } Write(__tagHelperExecutionContext.Output); __tagHelperExecutionContext = __tagHelperScopeManager.End(); EndContext(); BeginContext(575, 10, true); WriteLiteral("\r\n "); EndContext(); } ); __Syncfusion_JavaScript_PivotGridTagHelperMocks = CreateTagHelper <global::Syncfusion.JavaScript.PivotGridTagHelperMocks>(); __tagHelperExecutionContext.Add(__Syncfusion_JavaScript_PivotGridTagHelperMocks); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); if (!__tagHelperExecutionContext.Output.IsContentModified) { await __tagHelperExecutionContext.SetOutputContentAsync(); } Write(__tagHelperExecutionContext.Output); __tagHelperExecutionContext = __tagHelperScopeManager.End(); EndContext(); BeginContext(600, 10, true); WriteLiteral("\r\n "); EndContext(); BeginContext(610, 154, false); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("e-pivot-columns", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "0c10c19e964b4ba6942836e0296f1029", async() => { BeginContext(627, 14, true); WriteLiteral("\r\n "); EndContext(); BeginContext(641, 95, false); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("e-column-field", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "da30494926274b9c9fa153ea34bf20b8", async() => { } ); __Syncfusion_JavaScript_Models_Field = CreateTagHelper <global::Syncfusion.JavaScript.Models.Field>(); __tagHelperExecutionContext.Add(__Syncfusion_JavaScript_Models_Field); __Syncfusion_JavaScript_Models_Field.FieldName = (string)__tagHelperAttribute_2.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_2); __Syncfusion_JavaScript_Models_Field.FieldCaption = (string)__tagHelperAttribute_3.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_3); #line 13 "D:\Samples_17.2.0.46\ASPNETCORE\samplebrowser_core_2_0\Views\PivotGrid\Exporting.cshtml" __Syncfusion_JavaScript_Models_Field.ShowSubTotal = false; #line default #line hidden __tagHelperExecutionContext.AddTagHelperAttribute("show-sub-total", __Syncfusion_JavaScript_Models_Field.ShowSubTotal, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); if (!__tagHelperExecutionContext.Output.IsContentModified) { await __tagHelperExecutionContext.SetOutputContentAsync(); } Write(__tagHelperExecutionContext.Output); __tagHelperExecutionContext = __tagHelperScopeManager.End(); EndContext(); BeginContext(736, 10, true); WriteLiteral("\r\n "); EndContext(); } ); __Syncfusion_JavaScript_PivotGridTagHelperMocks = CreateTagHelper <global::Syncfusion.JavaScript.PivotGridTagHelperMocks>(); __tagHelperExecutionContext.Add(__Syncfusion_JavaScript_PivotGridTagHelperMocks); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); if (!__tagHelperExecutionContext.Output.IsContentModified) { await __tagHelperExecutionContext.SetOutputContentAsync(); } Write(__tagHelperExecutionContext.Output); __tagHelperExecutionContext = __tagHelperScopeManager.End(); EndContext(); BeginContext(764, 10, true); WriteLiteral("\r\n "); EndContext(); BeginContext(774, 149, false); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("e-pivot-values", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "6bf10da8d51c4e56af7e541a3dd49d5d", async() => { BeginContext(790, 14, true); WriteLiteral("\r\n "); EndContext(); BeginContext(804, 92, false); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("e-value-field", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "290e18612f664f57b9f21f1e367edc98", async() => { } ); __Syncfusion_JavaScript_Models_Field = CreateTagHelper <global::Syncfusion.JavaScript.Models.Field>(); __tagHelperExecutionContext.Add(__Syncfusion_JavaScript_Models_Field); __Syncfusion_JavaScript_Models_Field.FieldName = (string)__tagHelperAttribute_4.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_4); __Syncfusion_JavaScript_Models_Field.FieldCaption = (string)__tagHelperAttribute_5.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_5); __Syncfusion_JavaScript_Models_Field.Format = (string)__tagHelperAttribute_6.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_6); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); if (!__tagHelperExecutionContext.Output.IsContentModified) { await __tagHelperExecutionContext.SetOutputContentAsync(); } Write(__tagHelperExecutionContext.Output); __tagHelperExecutionContext = __tagHelperScopeManager.End(); EndContext(); BeginContext(896, 10, true); WriteLiteral("\r\n "); EndContext(); } ); __Syncfusion_JavaScript_PivotGridTagHelperMocks = CreateTagHelper <global::Syncfusion.JavaScript.PivotGridTagHelperMocks>(); __tagHelperExecutionContext.Add(__Syncfusion_JavaScript_PivotGridTagHelperMocks); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); if (!__tagHelperExecutionContext.Output.IsContentModified) { await __tagHelperExecutionContext.SetOutputContentAsync(); } Write(__tagHelperExecutionContext.Output); __tagHelperExecutionContext = __tagHelperScopeManager.End(); EndContext(); BeginContext(923, 6, true); WriteLiteral("\r\n "); EndContext(); } ); __Syncfusion_JavaScript_Models_PivotDataSource = CreateTagHelper <global::Syncfusion.JavaScript.Models.PivotDataSource>(); __tagHelperExecutionContext.Add(__Syncfusion_JavaScript_Models_PivotDataSource); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); if (!__tagHelperExecutionContext.Output.IsContentModified) { await __tagHelperExecutionContext.SetOutputContentAsync(); } Write(__tagHelperExecutionContext.Output); __tagHelperExecutionContext = __tagHelperScopeManager.End(); EndContext(); BeginContext(945, 2, true); WriteLiteral("\r\n"); EndContext(); } ); __Syncfusion_JavaScript_Models_PivotGridProperties = CreateTagHelper <global::Syncfusion.JavaScript.Models.PivotGridProperties>(); __tagHelperExecutionContext.Add(__Syncfusion_JavaScript_Models_PivotGridProperties); __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_7); #line 7 "D:\Samples_17.2.0.46\ASPNETCORE\samplebrowser_core_2_0\Views\PivotGrid\Exporting.cshtml" __Syncfusion_JavaScript_Models_PivotGridProperties.IsResponsive = true; #line default #line hidden __tagHelperExecutionContext.AddTagHelperAttribute("is-responsive", __Syncfusion_JavaScript_Models_PivotGridProperties.IsResponsive, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); __Syncfusion_JavaScript_Models_PivotGridProperties.Load = (string)__tagHelperAttribute_8.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_8); #line 7 "D:\Samples_17.2.0.46\ASPNETCORE\samplebrowser_core_2_0\Views\PivotGrid\Exporting.cshtml" __Syncfusion_JavaScript_Models_PivotGridProperties.EnableRowGrandTotal = false; #line default #line hidden __tagHelperExecutionContext.AddTagHelperAttribute("enable-row-grand-total", __Syncfusion_JavaScript_Models_PivotGridProperties.EnableRowGrandTotal, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); if (!__tagHelperExecutionContext.Output.IsContentModified) { await __tagHelperExecutionContext.SetOutputContentAsync(); } Write(__tagHelperExecutionContext.Output); __tagHelperExecutionContext = __tagHelperScopeManager.End(); EndContext(); BeginContext(963, 2, true); WriteLiteral("\r\n"); EndContext(); } ); DefineSection("ScriptSection", async() => { BeginContext(991, 4400, true); WriteLiteral(@" <script type=""text/javascript""> function onload(args) { args.model.dataSource.data = [ { Amount: 100, Country: ""Canada"", Date: ""FY 2005"", Product: ""Bike"", Quantity: 2, State: ""Alberta"" }, { Amount: 200, Country: ""Canada"", Date: ""FY 2006"", Product: ""Van"", Quantity: 3, State: ""British Columbia"" }, { Amount: 300, Country: ""Canada"", Date: ""FY 2007"", Product: ""Car"", Quantity: 4, State: ""Brunswick"" }, { Amount: 150, Country: ""Canada"", Date: ""FY 2008"", Product: ""Bike"", Quantity: 3, State: ""Manitoba"" }, { Amount: 200, Country: ""Canada"", Date: ""FY 2006"", Product: ""Car"", Quantity: 4, State: ""Ontario"" }, { Amount: 100, Country: ""Canada"", Date: ""FY 2007"", Product: ""Van"", Quantity: 1, State: ""Quebec"" }, { Amount:"); WriteLiteral(@" 200, Country: ""France"", Date: ""FY 2005"", Product: ""Bike"", Quantity: 2, State: ""Charente-Maritime"" }, { Amount: 250, Country: ""France"", Date: ""FY 2006"", Product: ""Van"", Quantity: 4, State: ""Essonne"" }, { Amount: 300, Country: ""France"", Date: ""FY 2007"", Product: ""Car"", Quantity: 3, State: ""Garonne (Haute)"" }, { Amount: 150, Country: ""France"", Date: ""FY 2008"", Product: ""Van"", Quantity: 2, State: ""Gers"" }, { Amount: 200, Country: ""Germany"", Date: ""FY 2006"", Product: ""Van"", Quantity: 3, State: ""Bayern"" }, { Amount: 250, Country: ""Germany"", Date: ""FY 2007"", Product: ""Car"", Quantity: 3, State: ""Brandenburg"" }, { Amount: 150, Country: ""Germany"", Date: ""FY 2008"", Product: ""Car"", Quantity: 4, State: ""Hamburg"" }, { Amount: 200, Country: "); WriteLiteral(@"""Germany"", Date: ""FY 2008"", Product: ""Bike"", Quantity: 4, State: ""Hessen"" }, { Amount: 150, Country: ""Germany"", Date: ""FY 2007"", Product: ""Van"", Quantity: 3, State: ""Nordrhein-Westfalen"" }, { Amount: 100, Country: ""Germany"", Date: ""FY 2005"", Product: ""Bike"", Quantity: 2, State: ""Saarland"" }, { Amount: 150, Country: ""United Kingdom"", Date: ""FY 2008"", Product: ""Bike"", Quantity: 5, State: ""England"" }, { Amount: 250, Country: ""United States"", Date: ""FY 2007"", Product: ""Car"", Quantity: 4, State: ""Alabama"" }, { Amount: 200, Country: ""United States"", Date: ""FY 2005"", Product: ""Van"", Quantity: 4, State: ""California"" }, { Amount: 100, Country: ""United States"", Date: ""FY 2006"", Product: ""Bike"", Quantity: 2, State: ""Colorado"" }, { Amount:"); WriteLiteral(@" 150, Country: ""United States"", Date: ""FY 2008"", Product: ""Car"", Quantity: 3, State: ""New Mexico"" }, { Amount: 200, Country: ""United States"", Date: ""FY 2005"", Product: ""Bike"", Quantity: 4, State: ""New York"" }, { Amount: 250, Country: ""United States"", Date: ""FY 2008"", Product: ""Car"", Quantity: 3, State: ""North Carolina"" }, { Amount: 300, Country: ""United States"", Date: ""FY 2007"", Product: ""Van"", Quantity: 4, State: ""South Carolina"" } ]; } function exportPivotGrid(args) { var dropDownObj = $('#GridExporting').data(""ejDropDownList""); var pGridObj = $('#PivotGrid1').data(""ejPivotGrid""); var exportOption = dropDownObj.model.value; if (exportOption == ""Excel"") pGridObj.exportPivotGrid(""ExcelExport"", ""Sample""); else if (exportOption == ""Word"") "); WriteLiteral(@" pGridObj.exportPivotGrid(""WordExport"", ""Sample""); else if (exportOption == ""PDF"") pGridObj.exportPivotGrid(""PDFExport"", ""Sample""); } $(function () { $(""#sampleProperties"").ejPropertiesPanel(); }); </script> "); EndContext(); } ); DefineSection("StyleSection", async() => { BeginContext(5416, 478, true); WriteLiteral(@" <style> #PivotGrid1 { width: 100%; height: 350px; overflow: auto; } #ExportBtn { margin-left: 80px; } .cols-prop-area { width: 300px !important; min-height: 93px !important; } .col-md-3 { height: 45px !important; } .cols-sample-area { width: 100% !important; } </style> "); EndContext(); } ); DefineSection("PropertiesSection", async() => { BeginContext(5924, 421, true); WriteLiteral(@" <ul id=""Exporting""> <li>Excel</li> <li>PDF</li> <li>Word</li> </ul> <br /> <div id=""sampleProperties""> <div class=""prop-grid""> <div class=""row"" style=""float:left;margin-left:30px !important; padding-top: 8px;""> Export Option : </div> <div class=""row"" style=""margin-right:20px;""> <div class=""col-md-3""> "); EndContext(); BeginContext(6345, 118, false); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("ej-drop-down-list", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "f8879e9702d34d9ba662683445c75ecd", async() => { } ); __Syncfusion_JavaScript_Models_DropDownListProperties = CreateTagHelper <global::Syncfusion.JavaScript.Models.DropDownListProperties>(); __tagHelperExecutionContext.Add(__Syncfusion_JavaScript_Models_DropDownListProperties); __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_9); __Syncfusion_JavaScript_Models_DropDownListProperties.TargetID = (string)__tagHelperAttribute_10.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_10); __Syncfusion_JavaScript_Models_DropDownListProperties.Width = (string)__tagHelperAttribute_11.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_11); #line 104 "D:\Samples_17.2.0.46\ASPNETCORE\samplebrowser_core_2_0\Views\PivotGrid\Exporting.cshtml" __Syncfusion_JavaScript_Models_DropDownListProperties.SelectedItemIndex = 0; #line default #line hidden __tagHelperExecutionContext.AddTagHelperAttribute("selected-item-index", __Syncfusion_JavaScript_Models_DropDownListProperties.SelectedItemIndex, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); if (!__tagHelperExecutionContext.Output.IsContentModified) { await __tagHelperExecutionContext.SetOutputContentAsync(); } Write(__tagHelperExecutionContext.Output); __tagHelperExecutionContext = __tagHelperScopeManager.End(); EndContext(); BeginContext(6463, 69, true); WriteLiteral("\r\n </div>\r\n </div>\r\n </div>\r\n <div>\r\n "); EndContext(); BeginContext(6532, 108, false); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("ej-button", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "16bef36b2a024eabbf84225cc95ec4e5", async() => { } ); __Syncfusion_JavaScript_Models_ButtonProperties = CreateTagHelper <global::Syncfusion.JavaScript.Models.ButtonProperties>(); __tagHelperExecutionContext.Add(__Syncfusion_JavaScript_Models_ButtonProperties); __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_12); __Syncfusion_JavaScript_Models_ButtonProperties.Width = (string)__tagHelperAttribute_11.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_11); __Syncfusion_JavaScript_Models_ButtonProperties.Height = (string)__tagHelperAttribute_13.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_13); #line 109 "D:\Samples_17.2.0.46\ASPNETCORE\samplebrowser_core_2_0\Views\PivotGrid\Exporting.cshtml" __Syncfusion_JavaScript_Models_ButtonProperties.Type = global::Syncfusion.JavaScript.ButtonType.Button; #line default #line hidden __tagHelperExecutionContext.AddTagHelperAttribute("type", __Syncfusion_JavaScript_Models_ButtonProperties.Type, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); __Syncfusion_JavaScript_Models_ButtonProperties.Text = (string)__tagHelperAttribute_14.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_14); __Syncfusion_JavaScript_Models_ButtonProperties.Click = (string)__tagHelperAttribute_15.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_15); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); if (!__tagHelperExecutionContext.Output.IsContentModified) { await __tagHelperExecutionContext.SetOutputContentAsync(); } Write(__tagHelperExecutionContext.Output); __tagHelperExecutionContext = __tagHelperScopeManager.End(); EndContext(); BeginContext(6640, 22, true); WriteLiteral("\r\n </div>\r\n</div>\r\n"); EndContext(); } ); }
#pragma warning disable 1998 public async override global::System.Threading.Tasks.Task ExecuteAsync() { DefineSection("SampleHeading", async() => { BeginContext(54, 52, true); WriteLiteral("<span class=\"sampleName\">PivotGrid / Default</span> "); EndContext(); } ); DefineSection("MetaTags", async() => { BeginContext(127, 186, true); WriteLiteral("\r\n <meta name=\"description\" content=\"This demo for Syncfusion Essential JS1 for ASP.NET Core Pivot Grid control shows how to bind pivot data which is in JSON format at script-side\">\r\n"); EndContext(); } ); DefineSection("ControlsSection", async() => { BeginContext(341, 2, true); WriteLiteral("\r\n"); EndContext(); BeginContext(343, 625, false); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("ej-pivot-grid", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "71de45c576d6448a97c966dcb78ce93c", async() => { BeginContext(472, 6, true); WriteLiteral("\r\n "); EndContext(); BeginContext(478, 472, false); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("e-data-source", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "4a5f9afe26114cfe8ee2f20d72564fad", async() => { BeginContext(493, 10, true); WriteLiteral("\r\n "); EndContext(); BeginContext(503, 125, false); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("e-pivot-rows", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "2c836a539d6e450096abec75ee331376", async() => { BeginContext(517, 14, true); WriteLiteral("\r\n "); EndContext(); BeginContext(531, 72, false); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("e-row-field", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "76cb0cb770a847b2bfd5662a7a7c9feb", async() => { } ); __Syncfusion_JavaScript_Models_Field = CreateTagHelper <global::Syncfusion.JavaScript.Models.Field>(); __tagHelperExecutionContext.Add(__Syncfusion_JavaScript_Models_Field); __Syncfusion_JavaScript_Models_Field.FieldName = (string)__tagHelperAttribute_0.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_0); __Syncfusion_JavaScript_Models_Field.FieldCaption = (string)__tagHelperAttribute_1.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_1); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); if (!__tagHelperExecutionContext.Output.IsContentModified) { await __tagHelperExecutionContext.SetOutputContentAsync(); } Write(__tagHelperExecutionContext.Output); __tagHelperExecutionContext = __tagHelperScopeManager.End(); EndContext(); BeginContext(603, 10, true); WriteLiteral("\r\n "); EndContext(); } ); __Syncfusion_JavaScript_PivotGridTagHelperMocks = CreateTagHelper <global::Syncfusion.JavaScript.PivotGridTagHelperMocks>(); __tagHelperExecutionContext.Add(__Syncfusion_JavaScript_PivotGridTagHelperMocks); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); if (!__tagHelperExecutionContext.Output.IsContentModified) { await __tagHelperExecutionContext.SetOutputContentAsync(); } Write(__tagHelperExecutionContext.Output); __tagHelperExecutionContext = __tagHelperScopeManager.End(); EndContext(); BeginContext(628, 10, true); WriteLiteral("\r\n "); EndContext(); BeginContext(638, 131, false); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("e-pivot-columns", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "188863eb46da42b8ba7daec25fc59439", async() => { BeginContext(655, 14, true); WriteLiteral("\r\n "); EndContext(); BeginContext(669, 72, false); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("e-column-field", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "9bf01a88d0b84e08bb3b900eb0a842fe", async() => { } ); __Syncfusion_JavaScript_Models_Field = CreateTagHelper <global::Syncfusion.JavaScript.Models.Field>(); __tagHelperExecutionContext.Add(__Syncfusion_JavaScript_Models_Field); __Syncfusion_JavaScript_Models_Field.FieldName = (string)__tagHelperAttribute_2.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_2); __Syncfusion_JavaScript_Models_Field.FieldCaption = (string)__tagHelperAttribute_3.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_3); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); if (!__tagHelperExecutionContext.Output.IsContentModified) { await __tagHelperExecutionContext.SetOutputContentAsync(); } Write(__tagHelperExecutionContext.Output); __tagHelperExecutionContext = __tagHelperScopeManager.End(); EndContext(); BeginContext(741, 10, true); WriteLiteral("\r\n "); EndContext(); } ); __Syncfusion_JavaScript_PivotGridTagHelperMocks = CreateTagHelper <global::Syncfusion.JavaScript.PivotGridTagHelperMocks>(); __tagHelperExecutionContext.Add(__Syncfusion_JavaScript_PivotGridTagHelperMocks); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); if (!__tagHelperExecutionContext.Output.IsContentModified) { await __tagHelperExecutionContext.SetOutputContentAsync(); } Write(__tagHelperExecutionContext.Output); __tagHelperExecutionContext = __tagHelperScopeManager.End(); EndContext(); BeginContext(769, 10, true); WriteLiteral("\r\n "); EndContext(); BeginContext(779, 149, false); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("e-pivot-values", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "d639f572d0404da6867f5cd51d580507", async() => { BeginContext(795, 14, true); WriteLiteral("\r\n "); EndContext(); BeginContext(809, 92, false); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("e-value-field", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "e9da1c976df548d28d4bf25333545fc6", async() => { } ); __Syncfusion_JavaScript_Models_Field = CreateTagHelper <global::Syncfusion.JavaScript.Models.Field>(); __tagHelperExecutionContext.Add(__Syncfusion_JavaScript_Models_Field); __Syncfusion_JavaScript_Models_Field.FieldName = (string)__tagHelperAttribute_4.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_4); __Syncfusion_JavaScript_Models_Field.FieldCaption = (string)__tagHelperAttribute_5.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_5); __Syncfusion_JavaScript_Models_Field.Format = (string)__tagHelperAttribute_6.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_6); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); if (!__tagHelperExecutionContext.Output.IsContentModified) { await __tagHelperExecutionContext.SetOutputContentAsync(); } Write(__tagHelperExecutionContext.Output); __tagHelperExecutionContext = __tagHelperScopeManager.End(); EndContext(); BeginContext(901, 10, true); WriteLiteral("\r\n "); EndContext(); } ); __Syncfusion_JavaScript_PivotGridTagHelperMocks = CreateTagHelper <global::Syncfusion.JavaScript.PivotGridTagHelperMocks>(); __tagHelperExecutionContext.Add(__Syncfusion_JavaScript_PivotGridTagHelperMocks); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); if (!__tagHelperExecutionContext.Output.IsContentModified) { await __tagHelperExecutionContext.SetOutputContentAsync(); } Write(__tagHelperExecutionContext.Output); __tagHelperExecutionContext = __tagHelperScopeManager.End(); EndContext(); BeginContext(928, 6, true); WriteLiteral("\r\n "); EndContext(); } ); __Syncfusion_JavaScript_Models_PivotDataSource = CreateTagHelper <global::Syncfusion.JavaScript.Models.PivotDataSource>(); __tagHelperExecutionContext.Add(__Syncfusion_JavaScript_Models_PivotDataSource); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); if (!__tagHelperExecutionContext.Output.IsContentModified) { await __tagHelperExecutionContext.SetOutputContentAsync(); } Write(__tagHelperExecutionContext.Output); __tagHelperExecutionContext = __tagHelperScopeManager.End(); EndContext(); BeginContext(950, 2, true); WriteLiteral("\r\n"); EndContext(); } ); __Syncfusion_JavaScript_Models_PivotGridProperties = CreateTagHelper <global::Syncfusion.JavaScript.Models.PivotGridProperties>(); __tagHelperExecutionContext.Add(__Syncfusion_JavaScript_Models_PivotGridProperties); __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_7); #line 7 "D:\Samples_17.2.0.46\ASPNETCORE\samplebrowser_core_2_0\Views\PivotGrid\Default.cshtml" __Syncfusion_JavaScript_Models_PivotGridProperties.IsResponsive = true; #line default #line hidden __tagHelperExecutionContext.AddTagHelperAttribute("is-responsive", __Syncfusion_JavaScript_Models_PivotGridProperties.IsResponsive, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); __Syncfusion_JavaScript_Models_PivotGridProperties.Load = (string)__tagHelperAttribute_8.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_8); #line 7 "D:\Samples_17.2.0.46\ASPNETCORE\samplebrowser_core_2_0\Views\PivotGrid\Default.cshtml" __Syncfusion_JavaScript_Models_PivotGridProperties.EnableGroupingBar = true; #line default #line hidden __tagHelperExecutionContext.AddTagHelperAttribute("enable-grouping-bar", __Syncfusion_JavaScript_Models_PivotGridProperties.EnableGroupingBar, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); #line 7 "D:\Samples_17.2.0.46\ASPNETCORE\samplebrowser_core_2_0\Views\PivotGrid\Default.cshtml" __Syncfusion_JavaScript_Models_PivotGridProperties.EnableMemberEditorSorting = true; #line default #line hidden __tagHelperExecutionContext.AddTagHelperAttribute("enable-member-editor-sorting", __Syncfusion_JavaScript_Models_PivotGridProperties.EnableMemberEditorSorting, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); if (!__tagHelperExecutionContext.Output.IsContentModified) { await __tagHelperExecutionContext.SetOutputContentAsync(); } Write(__tagHelperExecutionContext.Output); __tagHelperExecutionContext = __tagHelperScopeManager.End(); EndContext(); BeginContext(968, 2, true); WriteLiteral("\r\n"); EndContext(); } ); DefineSection("ScriptSection", async() => { BeginContext(996, 3675, true); WriteLiteral(@" <script type=""text/javascript""> function onload(args) { args.model.dataSource.data = [ { Amount: 100, Country: ""Canada"", Date: ""FY 2005"", Product: ""Bike"", Quantity: 2, State: ""Alberta"" }, { Amount: 200, Country: ""Canada"", Date: ""FY 2006"", Product: ""Van"", Quantity: 3, State: ""British Columbia"" }, { Amount: 300, Country: ""Canada"", Date: ""FY 2007"", Product: ""Car"", Quantity: 4, State: ""Brunswick"" }, { Amount: 150, Country: ""Canada"", Date: ""FY 2008"", Product: ""Bike"", Quantity: 3, State: ""Manitoba"" }, { Amount: 200, Country: ""Canada"", Date: ""FY 2006"", Product: ""Car"", Quantity: 4, State: ""Ontario"" }, { Amount: 100, Country: ""Canada"", Date: ""FY 2007"", Product: ""Van"", Quantity: 1, State: ""Quebec"" }, { Amount:"); WriteLiteral(@" 200, Country: ""France"", Date: ""FY 2005"", Product: ""Bike"", Quantity: 2, State: ""Charente-Maritime"" }, { Amount: 250, Country: ""France"", Date: ""FY 2006"", Product: ""Van"", Quantity: 4, State: ""Essonne"" }, { Amount: 300, Country: ""France"", Date: ""FY 2007"", Product: ""Car"", Quantity: 3, State: ""Garonne (Haute)"" }, { Amount: 150, Country: ""France"", Date: ""FY 2008"", Product: ""Van"", Quantity: 2, State: ""Gers"" }, { Amount: 200, Country: ""Germany"", Date: ""FY 2006"", Product: ""Van"", Quantity: 3, State: ""Bayern"" }, { Amount: 250, Country: ""Germany"", Date: ""FY 2007"", Product: ""Car"", Quantity: 3, State: ""Brandenburg"" }, { Amount: 150, Country: ""Germany"", Date: ""FY 2008"", Product: ""Car"", Quantity: 4, State: ""Hamburg"" }, { Amount: 200, Country: "); WriteLiteral(@"""Germany"", Date: ""FY 2008"", Product: ""Bike"", Quantity: 4, State: ""Hessen"" }, { Amount: 150, Country: ""Germany"", Date: ""FY 2007"", Product: ""Van"", Quantity: 3, State: ""Nordrhein-Westfalen"" }, { Amount: 100, Country: ""Germany"", Date: ""FY 2005"", Product: ""Bike"", Quantity: 2, State: ""Saarland"" }, { Amount: 150, Country: ""United Kingdom"", Date: ""FY 2008"", Product: ""Bike"", Quantity: 5, State: ""England"" }, { Amount: 250, Country: ""United States"", Date: ""FY 2007"", Product: ""Car"", Quantity: 4, State: ""Alabama"" }, { Amount: 200, Country: ""United States"", Date: ""FY 2005"", Product: ""Van"", Quantity: 4, State: ""California"" }, { Amount: 100, Country: ""United States"", Date: ""FY 2006"", Product: ""Bike"", Quantity: 2, State: ""Colorado"" }, { Amount:"); WriteLiteral(@" 150, Country: ""United States"", Date: ""FY 2008"", Product: ""Car"", Quantity: 3, State: ""New Mexico"" }, { Amount: 200, Country: ""United States"", Date: ""FY 2005"", Product: ""Bike"", Quantity: 4, State: ""New York"" }, { Amount: 250, Country: ""United States"", Date: ""FY 2008"", Product: ""Car"", Quantity: 3, State: ""North Carolina"" }, { Amount: 300, Country: ""United States"", Date: ""FY 2007"", Product: ""Van"", Quantity: 4, State: ""South Carolina"" } ]; } </script> "); EndContext(); } ); DefineSection("StyleSection", async() => { BeginContext(4696, 223, true); WriteLiteral("\r\n <style>\r\n #PivotGrid1 {\r\n width: 100%;\r\n height: 350px;\r\n overflow: auto;\r\n }\r\n .cols-sample-area {\r\n width: 100% !important;\r\n }\r\n </style>\r\n"); EndContext(); } ); }
#pragma warning disable 1998 public async override global::System.Threading.Tasks.Task ExecuteAsync() { DefineSection("SampleHeading", async() => { BeginContext(54, 54, true); WriteLiteral("<span class=\"sampleName\">PivotGrid / Exporting</span> "); EndContext(); } ); DefineSection("MetaTags", async() => { BeginContext(129, 165, true); WriteLiteral("\r\n <meta name=\"description\" content=\"This demo for Syncfusion Essential JS1 for ASP.NET Core Pivot Grid control demos on export to Excel, CSV and PDF formats.\">\r\n"); EndContext(); } ); DefineSection("ControlsSection", async() => { BeginContext(322, 2, true); WriteLiteral("\r\n"); EndContext(); BeginContext(324, 639, false); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("ej-pivot-grid", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "70553542346146abb4526d86130e2760", async() => { BeginContext(421, 6, true); WriteLiteral("\r\n "); EndContext(); BeginContext(427, 518, false); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("e-data-source", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "f0eb003ea7a74a0b856f4dbc0f7a9128", async() => { BeginContext(442, 10, true); WriteLiteral("\r\n "); EndContext(); BeginContext(452, 148, false); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("e-pivot-rows", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "ae0d72c6656141a0834c6a7039fb3c1d", async() => { BeginContext(466, 14, true); WriteLiteral("\r\n "); EndContext(); BeginContext(480, 95, false); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("e-row-field", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "88a36d9da2d240b7b840c6711a9ecc02", async() => { } ); __Syncfusion_JavaScript_Models_Field = CreateTagHelper <global::Syncfusion.JavaScript.Models.Field>(); __tagHelperExecutionContext.Add(__Syncfusion_JavaScript_Models_Field); __Syncfusion_JavaScript_Models_Field.FieldName = (string)__tagHelperAttribute_0.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_0); __Syncfusion_JavaScript_Models_Field.FieldCaption = (string)__tagHelperAttribute_1.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_1); #line 10 "D:\Samples_17.2.0.46\ASPNETCORE\samplebrowser_core_2_0\Views\PivotGrid\Exporting.cshtml" __Syncfusion_JavaScript_Models_Field.ShowSubTotal = false; #line default #line hidden __tagHelperExecutionContext.AddTagHelperAttribute("show-sub-total", __Syncfusion_JavaScript_Models_Field.ShowSubTotal, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); if (!__tagHelperExecutionContext.Output.IsContentModified) { await __tagHelperExecutionContext.SetOutputContentAsync(); } Write(__tagHelperExecutionContext.Output); __tagHelperExecutionContext = __tagHelperScopeManager.End(); EndContext(); BeginContext(575, 10, true); WriteLiteral("\r\n "); EndContext(); } ); __Syncfusion_JavaScript_PivotGridTagHelperMocks = CreateTagHelper <global::Syncfusion.JavaScript.PivotGridTagHelperMocks>(); __tagHelperExecutionContext.Add(__Syncfusion_JavaScript_PivotGridTagHelperMocks); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); if (!__tagHelperExecutionContext.Output.IsContentModified) { await __tagHelperExecutionContext.SetOutputContentAsync(); } Write(__tagHelperExecutionContext.Output); __tagHelperExecutionContext = __tagHelperScopeManager.End(); EndContext(); BeginContext(600, 10, true); WriteLiteral("\r\n "); EndContext(); BeginContext(610, 154, false); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("e-pivot-columns", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "191be77592b54c9e85e17fe8b72a3bd4", async() => { BeginContext(627, 14, true); WriteLiteral("\r\n "); EndContext(); BeginContext(641, 95, false); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("e-column-field", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "2e8d0b705a2a40a9b7a40dbebb6527f0", async() => { } ); __Syncfusion_JavaScript_Models_Field = CreateTagHelper <global::Syncfusion.JavaScript.Models.Field>(); __tagHelperExecutionContext.Add(__Syncfusion_JavaScript_Models_Field); __Syncfusion_JavaScript_Models_Field.FieldName = (string)__tagHelperAttribute_2.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_2); __Syncfusion_JavaScript_Models_Field.FieldCaption = (string)__tagHelperAttribute_3.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_3); #line 13 "D:\Samples_17.2.0.46\ASPNETCORE\samplebrowser_core_2_0\Views\PivotGrid\Exporting.cshtml" __Syncfusion_JavaScript_Models_Field.ShowSubTotal = false; #line default #line hidden __tagHelperExecutionContext.AddTagHelperAttribute("show-sub-total", __Syncfusion_JavaScript_Models_Field.ShowSubTotal, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); if (!__tagHelperExecutionContext.Output.IsContentModified) { await __tagHelperExecutionContext.SetOutputContentAsync(); } Write(__tagHelperExecutionContext.Output); __tagHelperExecutionContext = __tagHelperScopeManager.End(); EndContext(); BeginContext(736, 10, true); WriteLiteral("\r\n "); EndContext(); } ); __Syncfusion_JavaScript_PivotGridTagHelperMocks = CreateTagHelper <global::Syncfusion.JavaScript.PivotGridTagHelperMocks>(); __tagHelperExecutionContext.Add(__Syncfusion_JavaScript_PivotGridTagHelperMocks); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); if (!__tagHelperExecutionContext.Output.IsContentModified) { await __tagHelperExecutionContext.SetOutputContentAsync(); } Write(__tagHelperExecutionContext.Output); __tagHelperExecutionContext = __tagHelperScopeManager.End(); EndContext(); BeginContext(764, 10, true); WriteLiteral("\r\n "); EndContext(); BeginContext(774, 149, false); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("e-pivot-values", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "4bfeba4707354f3086e06a5e4649b4a9", async() => { BeginContext(790, 14, true); WriteLiteral("\r\n "); EndContext(); BeginContext(804, 92, false); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("e-value-field", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "ade39ac03ebf45de8d3d32dfcf26e8f6", async() => { } ); __Syncfusion_JavaScript_Models_Field = CreateTagHelper <global::Syncfusion.JavaScript.Models.Field>(); __tagHelperExecutionContext.Add(__Syncfusion_JavaScript_Models_Field); __Syncfusion_JavaScript_Models_Field.FieldName = (string)__tagHelperAttribute_4.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_4); __Syncfusion_JavaScript_Models_Field.FieldCaption = (string)__tagHelperAttribute_5.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_5); __Syncfusion_JavaScript_Models_Field.Format = (string)__tagHelperAttribute_6.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_6); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); if (!__tagHelperExecutionContext.Output.IsContentModified) { await __tagHelperExecutionContext.SetOutputContentAsync(); } Write(__tagHelperExecutionContext.Output); __tagHelperExecutionContext = __tagHelperScopeManager.End(); EndContext(); BeginContext(896, 10, true); WriteLiteral("\r\n "); EndContext(); } ); __Syncfusion_JavaScript_PivotGridTagHelperMocks = CreateTagHelper <global::Syncfusion.JavaScript.PivotGridTagHelperMocks>(); __tagHelperExecutionContext.Add(__Syncfusion_JavaScript_PivotGridTagHelperMocks); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); if (!__tagHelperExecutionContext.Output.IsContentModified) { await __tagHelperExecutionContext.SetOutputContentAsync(); } Write(__tagHelperExecutionContext.Output); __tagHelperExecutionContext = __tagHelperScopeManager.End(); EndContext(); BeginContext(923, 6, true); WriteLiteral("\r\n "); EndContext(); } ); __Syncfusion_JavaScript_Models_PivotDataSource = CreateTagHelper <global::Syncfusion.JavaScript.Models.PivotDataSource>(); __tagHelperExecutionContext.Add(__Syncfusion_JavaScript_Models_PivotDataSource); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); if (!__tagHelperExecutionContext.Output.IsContentModified) { await __tagHelperExecutionContext.SetOutputContentAsync(); } Write(__tagHelperExecutionContext.Output); __tagHelperExecutionContext = __tagHelperScopeManager.End(); EndContext(); BeginContext(945, 2, true); WriteLiteral("\r\n"); EndContext(); } ); __Syncfusion_JavaScript_Models_PivotGridProperties = CreateTagHelper <global::Syncfusion.JavaScript.Models.PivotGridProperties>(); __tagHelperExecutionContext.Add(__Syncfusion_JavaScript_Models_PivotGridProperties); __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_7); #line 7 "D:\Samples_17.2.0.46\ASPNETCORE\samplebrowser_core_2_0\Views\PivotGrid\Exporting.cshtml" __Syncfusion_JavaScript_Models_PivotGridProperties.IsResponsive = true; #line default #line hidden __tagHelperExecutionContext.AddTagHelperAttribute("is-responsive", __Syncfusion_JavaScript_Models_PivotGridProperties.IsResponsive, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); __Syncfusion_JavaScript_Models_PivotGridProperties.Load = (string)__tagHelperAttribute_8.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_8); #line 7 "D:\Samples_17.2.0.46\ASPNETCORE\samplebrowser_core_2_0\Views\PivotGrid\Exporting.cshtml" __Syncfusion_JavaScript_Models_PivotGridProperties.EnableRowGrandTotal = false; #line default #line hidden __tagHelperExecutionContext.AddTagHelperAttribute("enable-row-grand-total", __Syncfusion_JavaScript_Models_PivotGridProperties.EnableRowGrandTotal, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); if (!__tagHelperExecutionContext.Output.IsContentModified) { await __tagHelperExecutionContext.SetOutputContentAsync(); } Write(__tagHelperExecutionContext.Output); __tagHelperExecutionContext = __tagHelperScopeManager.End(); EndContext(); BeginContext(963, 2, true); WriteLiteral("\r\n"); EndContext(); } ); DefineSection("ScriptSection", async() => { BeginContext(991, 4400, true); WriteLiteral(@" <script type=""text/javascript""> function onload(args) { args.model.dataSource.data = [ { Amount: 100, Country: ""Canada"", Date: ""FY 2005"", Product: ""Bike"", Quantity: 2, State: ""Alberta"" }, { Amount: 200, Country: ""Canada"", Date: ""FY 2006"", Product: ""Van"", Quantity: 3, State: ""British Columbia"" }, { Amount: 300, Country: ""Canada"", Date: ""FY 2007"", Product: ""Car"", Quantity: 4, State: ""Brunswick"" }, { Amount: 150, Country: ""Canada"", Date: ""FY 2008"", Product: ""Bike"", Quantity: 3, State: ""Manitoba"" }, { Amount: 200, Country: ""Canada"", Date: ""FY 2006"", Product: ""Car"", Quantity: 4, State: ""Ontario"" }, { Amount: 100, Country: ""Canada"", Date: ""FY 2007"", Product: ""Van"", Quantity: 1, State: ""Quebec"" }, { Amount:"); WriteLiteral(@" 200, Country: ""France"", Date: ""FY 2005"", Product: ""Bike"", Quantity: 2, State: ""Charente-Maritime"" }, { Amount: 250, Country: ""France"", Date: ""FY 2006"", Product: ""Van"", Quantity: 4, State: ""Essonne"" }, { Amount: 300, Country: ""France"", Date: ""FY 2007"", Product: ""Car"", Quantity: 3, State: ""Garonne (Haute)"" }, { Amount: 150, Country: ""France"", Date: ""FY 2008"", Product: ""Van"", Quantity: 2, State: ""Gers"" }, { Amount: 200, Country: ""Germany"", Date: ""FY 2006"", Product: ""Van"", Quantity: 3, State: ""Bayern"" }, { Amount: 250, Country: ""Germany"", Date: ""FY 2007"", Product: ""Car"", Quantity: 3, State: ""Brandenburg"" }, { Amount: 150, Country: ""Germany"", Date: ""FY 2008"", Product: ""Car"", Quantity: 4, State: ""Hamburg"" }, { Amount: 200, Country: "); WriteLiteral(@"""Germany"", Date: ""FY 2008"", Product: ""Bike"", Quantity: 4, State: ""Hessen"" }, { Amount: 150, Country: ""Germany"", Date: ""FY 2007"", Product: ""Van"", Quantity: 3, State: ""Nordrhein-Westfalen"" }, { Amount: 100, Country: ""Germany"", Date: ""FY 2005"", Product: ""Bike"", Quantity: 2, State: ""Saarland"" }, { Amount: 150, Country: ""United Kingdom"", Date: ""FY 2008"", Product: ""Bike"", Quantity: 5, State: ""England"" }, { Amount: 250, Country: ""United States"", Date: ""FY 2007"", Product: ""Car"", Quantity: 4, State: ""Alabama"" }, { Amount: 200, Country: ""United States"", Date: ""FY 2005"", Product: ""Van"", Quantity: 4, State: ""California"" }, { Amount: 100, Country: ""United States"", Date: ""FY 2006"", Product: ""Bike"", Quantity: 2, State: ""Colorado"" }, { Amount:"); WriteLiteral(@" 150, Country: ""United States"", Date: ""FY 2008"", Product: ""Car"", Quantity: 3, State: ""New Mexico"" }, { Amount: 200, Country: ""United States"", Date: ""FY 2005"", Product: ""Bike"", Quantity: 4, State: ""New York"" }, { Amount: 250, Country: ""United States"", Date: ""FY 2008"", Product: ""Car"", Quantity: 3, State: ""North Carolina"" }, { Amount: 300, Country: ""United States"", Date: ""FY 2007"", Product: ""Van"", Quantity: 4, State: ""South Carolina"" } ]; } function exportPivotGrid(args) { var dropDownObj = $('#GridExporting').data(""ejDropDownList""); var pGridObj = $('#PivotGrid1').data(""ejPivotGrid""); var exportOption = dropDownObj.model.value; if (exportOption == ""Excel"") pGridObj.exportPivotGrid(""ExcelExport"", ""Sample""); else if (exportOption == ""Word"") "); WriteLiteral(@" pGridObj.exportPivotGrid(""WordExport"", ""Sample""); else if (exportOption == ""PDF"") pGridObj.exportPivotGrid(""PDFExport"", ""Sample""); } $(function () { $(""#sampleProperties"").ejPropertiesPanel(); }); </script> "); EndContext(); } ); DefineSection("StyleSection", async() => { BeginContext(5416, 478, true); WriteLiteral(@" <style> #PivotGrid1 { width: 100%; height: 350px; overflow: auto; } #ExportBtn { margin-left: 80px; } .cols-prop-area { width: 300px !important; min-height: 93px !important; } .col-md-3 { height: 45px !important; } .cols-sample-area { width: 100% !important; } </style> "); EndContext(); } ); DefineSection("PropertiesSection", async() => { BeginContext(5924, 421, true); WriteLiteral(@" <ul id=""Exporting""> <li>Excel</li> <li>PDF</li> <li>Word</li> </ul> <br /> <div id=""sampleProperties""> <div class=""prop-grid""> <div class=""row"" style=""float:left;margin-left:30px !important; padding-top: 8px;""> Export Option : </div> <div class=""row"" style=""margin-right:20px;""> <div class=""col-md-3""> "); EndContext(); BeginContext(6345, 118, false); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("ej-drop-down-list", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "6d11f5964e5a4d28bd2cf135e623276c", async() => { } ); __Syncfusion_JavaScript_Models_DropDownListProperties = CreateTagHelper <global::Syncfusion.JavaScript.Models.DropDownListProperties>(); __tagHelperExecutionContext.Add(__Syncfusion_JavaScript_Models_DropDownListProperties); __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_9); __Syncfusion_JavaScript_Models_DropDownListProperties.TargetID = (string)__tagHelperAttribute_10.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_10); __Syncfusion_JavaScript_Models_DropDownListProperties.Width = (string)__tagHelperAttribute_11.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_11); #line 104 "D:\Samples_17.2.0.46\ASPNETCORE\samplebrowser_core_2_0\Views\PivotGrid\Exporting.cshtml" __Syncfusion_JavaScript_Models_DropDownListProperties.SelectedItemIndex = 0; #line default #line hidden __tagHelperExecutionContext.AddTagHelperAttribute("selected-item-index", __Syncfusion_JavaScript_Models_DropDownListProperties.SelectedItemIndex, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); if (!__tagHelperExecutionContext.Output.IsContentModified) { await __tagHelperExecutionContext.SetOutputContentAsync(); } Write(__tagHelperExecutionContext.Output); __tagHelperExecutionContext = __tagHelperScopeManager.End(); EndContext(); BeginContext(6463, 69, true); WriteLiteral("\r\n </div>\r\n </div>\r\n </div>\r\n <div>\r\n "); EndContext(); BeginContext(6532, 108, false); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("ej-button", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "5c887f79e97748fb96feb4e88ec2cf92", async() => { } ); __Syncfusion_JavaScript_Models_ButtonProperties = CreateTagHelper <global::Syncfusion.JavaScript.Models.ButtonProperties>(); __tagHelperExecutionContext.Add(__Syncfusion_JavaScript_Models_ButtonProperties); __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_12); __Syncfusion_JavaScript_Models_ButtonProperties.Width = (string)__tagHelperAttribute_11.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_11); __Syncfusion_JavaScript_Models_ButtonProperties.Height = (string)__tagHelperAttribute_13.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_13); #line 109 "D:\Samples_17.2.0.46\ASPNETCORE\samplebrowser_core_2_0\Views\PivotGrid\Exporting.cshtml" __Syncfusion_JavaScript_Models_ButtonProperties.Type = global::Syncfusion.JavaScript.ButtonType.Button; #line default #line hidden __tagHelperExecutionContext.AddTagHelperAttribute("type", __Syncfusion_JavaScript_Models_ButtonProperties.Type, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); __Syncfusion_JavaScript_Models_ButtonProperties.Text = (string)__tagHelperAttribute_14.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_14); __Syncfusion_JavaScript_Models_ButtonProperties.Click = (string)__tagHelperAttribute_15.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_15); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); if (!__tagHelperExecutionContext.Output.IsContentModified) { await __tagHelperExecutionContext.SetOutputContentAsync(); } Write(__tagHelperExecutionContext.Output); __tagHelperExecutionContext = __tagHelperScopeManager.End(); EndContext(); BeginContext(6640, 22, true); WriteLiteral("\r\n </div>\r\n</div>\r\n"); EndContext(); } ); }
#pragma warning disable 1998 public async override global::System.Threading.Tasks.Task ExecuteAsync() { DefineSection("SampleHeading", async() => { BeginContext(54, 52, true); WriteLiteral("<span class=\"sampleName\">PivotGrid / Default</span> "); EndContext(); } ); DefineSection("MetaTags", async() => { BeginContext(127, 186, true); WriteLiteral("\r\n <meta name=\"description\" content=\"This demo for Syncfusion Essential JS1 for ASP.NET Core Pivot Grid control shows how to bind pivot data which is in JSON format at script-side\">\r\n"); EndContext(); } ); DefineSection("ControlsSection", async() => { BeginContext(341, 2, true); WriteLiteral("\r\n"); EndContext(); BeginContext(343, 625, false); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("ej-pivot-grid", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "80465fb9be4d471c88816362c51f848d", async() => { BeginContext(472, 6, true); WriteLiteral("\r\n "); EndContext(); BeginContext(478, 472, false); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("e-data-source", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "4da8562bc9b449e3b4b90de2d2fb3e37", async() => { BeginContext(493, 10, true); WriteLiteral("\r\n "); EndContext(); BeginContext(503, 125, false); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("e-pivot-rows", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "88672a976f7d4dea9a581f41e2741818", async() => { BeginContext(517, 14, true); WriteLiteral("\r\n "); EndContext(); BeginContext(531, 72, false); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("e-row-field", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "6e78c87e2b384e758ebbc5146ab1e967", async() => { } ); __Syncfusion_JavaScript_Models_Field = CreateTagHelper <global::Syncfusion.JavaScript.Models.Field>(); __tagHelperExecutionContext.Add(__Syncfusion_JavaScript_Models_Field); __Syncfusion_JavaScript_Models_Field.FieldName = (string)__tagHelperAttribute_0.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_0); __Syncfusion_JavaScript_Models_Field.FieldCaption = (string)__tagHelperAttribute_1.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_1); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); if (!__tagHelperExecutionContext.Output.IsContentModified) { await __tagHelperExecutionContext.SetOutputContentAsync(); } Write(__tagHelperExecutionContext.Output); __tagHelperExecutionContext = __tagHelperScopeManager.End(); EndContext(); BeginContext(603, 10, true); WriteLiteral("\r\n "); EndContext(); } ); __Syncfusion_JavaScript_PivotGridTagHelperMocks = CreateTagHelper <global::Syncfusion.JavaScript.PivotGridTagHelperMocks>(); __tagHelperExecutionContext.Add(__Syncfusion_JavaScript_PivotGridTagHelperMocks); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); if (!__tagHelperExecutionContext.Output.IsContentModified) { await __tagHelperExecutionContext.SetOutputContentAsync(); } Write(__tagHelperExecutionContext.Output); __tagHelperExecutionContext = __tagHelperScopeManager.End(); EndContext(); BeginContext(628, 10, true); WriteLiteral("\r\n "); EndContext(); BeginContext(638, 131, false); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("e-pivot-columns", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "a6ab4b86f2674380a0ada5c89edbc05c", async() => { BeginContext(655, 14, true); WriteLiteral("\r\n "); EndContext(); BeginContext(669, 72, false); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("e-column-field", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "7d8ff0e18b044345b06de0ba5999e281", async() => { } ); __Syncfusion_JavaScript_Models_Field = CreateTagHelper <global::Syncfusion.JavaScript.Models.Field>(); __tagHelperExecutionContext.Add(__Syncfusion_JavaScript_Models_Field); __Syncfusion_JavaScript_Models_Field.FieldName = (string)__tagHelperAttribute_2.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_2); __Syncfusion_JavaScript_Models_Field.FieldCaption = (string)__tagHelperAttribute_3.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_3); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); if (!__tagHelperExecutionContext.Output.IsContentModified) { await __tagHelperExecutionContext.SetOutputContentAsync(); } Write(__tagHelperExecutionContext.Output); __tagHelperExecutionContext = __tagHelperScopeManager.End(); EndContext(); BeginContext(741, 10, true); WriteLiteral("\r\n "); EndContext(); } ); __Syncfusion_JavaScript_PivotGridTagHelperMocks = CreateTagHelper <global::Syncfusion.JavaScript.PivotGridTagHelperMocks>(); __tagHelperExecutionContext.Add(__Syncfusion_JavaScript_PivotGridTagHelperMocks); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); if (!__tagHelperExecutionContext.Output.IsContentModified) { await __tagHelperExecutionContext.SetOutputContentAsync(); } Write(__tagHelperExecutionContext.Output); __tagHelperExecutionContext = __tagHelperScopeManager.End(); EndContext(); BeginContext(769, 10, true); WriteLiteral("\r\n "); EndContext(); BeginContext(779, 149, false); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("e-pivot-values", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "afd817dbdad74b1485cc9cf0ada47da5", async() => { BeginContext(795, 14, true); WriteLiteral("\r\n "); EndContext(); BeginContext(809, 92, false); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("e-value-field", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "627d2a5c0b1a485f997ce75ee182bdd6", async() => { } ); __Syncfusion_JavaScript_Models_Field = CreateTagHelper <global::Syncfusion.JavaScript.Models.Field>(); __tagHelperExecutionContext.Add(__Syncfusion_JavaScript_Models_Field); __Syncfusion_JavaScript_Models_Field.FieldName = (string)__tagHelperAttribute_4.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_4); __Syncfusion_JavaScript_Models_Field.FieldCaption = (string)__tagHelperAttribute_5.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_5); __Syncfusion_JavaScript_Models_Field.Format = (string)__tagHelperAttribute_6.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_6); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); if (!__tagHelperExecutionContext.Output.IsContentModified) { await __tagHelperExecutionContext.SetOutputContentAsync(); } Write(__tagHelperExecutionContext.Output); __tagHelperExecutionContext = __tagHelperScopeManager.End(); EndContext(); BeginContext(901, 10, true); WriteLiteral("\r\n "); EndContext(); } ); __Syncfusion_JavaScript_PivotGridTagHelperMocks = CreateTagHelper <global::Syncfusion.JavaScript.PivotGridTagHelperMocks>(); __tagHelperExecutionContext.Add(__Syncfusion_JavaScript_PivotGridTagHelperMocks); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); if (!__tagHelperExecutionContext.Output.IsContentModified) { await __tagHelperExecutionContext.SetOutputContentAsync(); } Write(__tagHelperExecutionContext.Output); __tagHelperExecutionContext = __tagHelperScopeManager.End(); EndContext(); BeginContext(928, 6, true); WriteLiteral("\r\n "); EndContext(); } ); __Syncfusion_JavaScript_Models_PivotDataSource = CreateTagHelper <global::Syncfusion.JavaScript.Models.PivotDataSource>(); __tagHelperExecutionContext.Add(__Syncfusion_JavaScript_Models_PivotDataSource); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); if (!__tagHelperExecutionContext.Output.IsContentModified) { await __tagHelperExecutionContext.SetOutputContentAsync(); } Write(__tagHelperExecutionContext.Output); __tagHelperExecutionContext = __tagHelperScopeManager.End(); EndContext(); BeginContext(950, 2, true); WriteLiteral("\r\n"); EndContext(); } ); __Syncfusion_JavaScript_Models_PivotGridProperties = CreateTagHelper <global::Syncfusion.JavaScript.Models.PivotGridProperties>(); __tagHelperExecutionContext.Add(__Syncfusion_JavaScript_Models_PivotGridProperties); __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_7); #line 7 "D:\Samples_17.2.0.46\ASPNETCORE\samplebrowser_core_2_0\Views\PivotGrid\Default.cshtml" __Syncfusion_JavaScript_Models_PivotGridProperties.IsResponsive = true; #line default #line hidden __tagHelperExecutionContext.AddTagHelperAttribute("is-responsive", __Syncfusion_JavaScript_Models_PivotGridProperties.IsResponsive, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); __Syncfusion_JavaScript_Models_PivotGridProperties.Load = (string)__tagHelperAttribute_8.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_8); #line 7 "D:\Samples_17.2.0.46\ASPNETCORE\samplebrowser_core_2_0\Views\PivotGrid\Default.cshtml" __Syncfusion_JavaScript_Models_PivotGridProperties.EnableGroupingBar = true; #line default #line hidden __tagHelperExecutionContext.AddTagHelperAttribute("enable-grouping-bar", __Syncfusion_JavaScript_Models_PivotGridProperties.EnableGroupingBar, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); #line 7 "D:\Samples_17.2.0.46\ASPNETCORE\samplebrowser_core_2_0\Views\PivotGrid\Default.cshtml" __Syncfusion_JavaScript_Models_PivotGridProperties.EnableMemberEditorSorting = true; #line default #line hidden __tagHelperExecutionContext.AddTagHelperAttribute("enable-member-editor-sorting", __Syncfusion_JavaScript_Models_PivotGridProperties.EnableMemberEditorSorting, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); if (!__tagHelperExecutionContext.Output.IsContentModified) { await __tagHelperExecutionContext.SetOutputContentAsync(); } Write(__tagHelperExecutionContext.Output); __tagHelperExecutionContext = __tagHelperScopeManager.End(); EndContext(); BeginContext(968, 2, true); WriteLiteral("\r\n"); EndContext(); } ); DefineSection("ScriptSection", async() => { BeginContext(996, 3675, true); WriteLiteral(@" <script type=""text/javascript""> function onload(args) { args.model.dataSource.data = [ { Amount: 100, Country: ""Canada"", Date: ""FY 2005"", Product: ""Bike"", Quantity: 2, State: ""Alberta"" }, { Amount: 200, Country: ""Canada"", Date: ""FY 2006"", Product: ""Van"", Quantity: 3, State: ""British Columbia"" }, { Amount: 300, Country: ""Canada"", Date: ""FY 2007"", Product: ""Car"", Quantity: 4, State: ""Brunswick"" }, { Amount: 150, Country: ""Canada"", Date: ""FY 2008"", Product: ""Bike"", Quantity: 3, State: ""Manitoba"" }, { Amount: 200, Country: ""Canada"", Date: ""FY 2006"", Product: ""Car"", Quantity: 4, State: ""Ontario"" }, { Amount: 100, Country: ""Canada"", Date: ""FY 2007"", Product: ""Van"", Quantity: 1, State: ""Quebec"" }, { Amount:"); WriteLiteral(@" 200, Country: ""France"", Date: ""FY 2005"", Product: ""Bike"", Quantity: 2, State: ""Charente-Maritime"" }, { Amount: 250, Country: ""France"", Date: ""FY 2006"", Product: ""Van"", Quantity: 4, State: ""Essonne"" }, { Amount: 300, Country: ""France"", Date: ""FY 2007"", Product: ""Car"", Quantity: 3, State: ""Garonne (Haute)"" }, { Amount: 150, Country: ""France"", Date: ""FY 2008"", Product: ""Van"", Quantity: 2, State: ""Gers"" }, { Amount: 200, Country: ""Germany"", Date: ""FY 2006"", Product: ""Van"", Quantity: 3, State: ""Bayern"" }, { Amount: 250, Country: ""Germany"", Date: ""FY 2007"", Product: ""Car"", Quantity: 3, State: ""Brandenburg"" }, { Amount: 150, Country: ""Germany"", Date: ""FY 2008"", Product: ""Car"", Quantity: 4, State: ""Hamburg"" }, { Amount: 200, Country: "); WriteLiteral(@"""Germany"", Date: ""FY 2008"", Product: ""Bike"", Quantity: 4, State: ""Hessen"" }, { Amount: 150, Country: ""Germany"", Date: ""FY 2007"", Product: ""Van"", Quantity: 3, State: ""Nordrhein-Westfalen"" }, { Amount: 100, Country: ""Germany"", Date: ""FY 2005"", Product: ""Bike"", Quantity: 2, State: ""Saarland"" }, { Amount: 150, Country: ""United Kingdom"", Date: ""FY 2008"", Product: ""Bike"", Quantity: 5, State: ""England"" }, { Amount: 250, Country: ""United States"", Date: ""FY 2007"", Product: ""Car"", Quantity: 4, State: ""Alabama"" }, { Amount: 200, Country: ""United States"", Date: ""FY 2005"", Product: ""Van"", Quantity: 4, State: ""California"" }, { Amount: 100, Country: ""United States"", Date: ""FY 2006"", Product: ""Bike"", Quantity: 2, State: ""Colorado"" }, { Amount:"); WriteLiteral(@" 150, Country: ""United States"", Date: ""FY 2008"", Product: ""Car"", Quantity: 3, State: ""New Mexico"" }, { Amount: 200, Country: ""United States"", Date: ""FY 2005"", Product: ""Bike"", Quantity: 4, State: ""New York"" }, { Amount: 250, Country: ""United States"", Date: ""FY 2008"", Product: ""Car"", Quantity: 3, State: ""North Carolina"" }, { Amount: 300, Country: ""United States"", Date: ""FY 2007"", Product: ""Van"", Quantity: 4, State: ""South Carolina"" } ]; } </script> "); EndContext(); } ); DefineSection("StyleSection", async() => { BeginContext(4696, 223, true); WriteLiteral("\r\n <style>\r\n #PivotGrid1 {\r\n width: 100%;\r\n height: 350px;\r\n overflow: auto;\r\n }\r\n .cols-sample-area {\r\n width: 100% !important;\r\n }\r\n </style>\r\n"); EndContext(); } ); }
#pragma warning disable 1998 public async override global::System.Threading.Tasks.Task ExecuteAsync() { DefineSection("SampleHeading", async() => { BeginContext(54, 61, true); WriteLiteral("<span class=\"sampleName\">PivotGrid / User Interaction</span> "); EndContext(); } ); DefineSection("MetaTags", async() => { BeginContext(136, 202, true); WriteLiteral("\r\n <meta name=\"description\" content=\"This demo for Syncfusion Essential JS1 for ASP.NET Core Pivot Grid control shows how to re-arrange the fields to change pivot report and pivot view at runtime\">\r\n"); EndContext(); } ); DefineSection("ControlsSection", async() => { BeginContext(366, 29, true); WriteLiteral("\r\n<div class=\"control\">\r\n "); EndContext(); BeginContext(395, 704, false); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("ej-pivot-grid", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "ffa8bb1b9aa444569900f221387c4206", async() => { BeginContext(537, 10, true); WriteLiteral("\r\n "); EndContext(); BeginContext(547, 530, false); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("e-data-source", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "f1ade83f83834ecb93cbf06e21fea3fe", async() => { BeginContext(562, 14, true); WriteLiteral("\r\n "); EndContext(); BeginContext(576, 151, false); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("e-pivot-rows", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "f46662137f9d4b0d92cb2892f118d285", async() => { BeginContext(590, 18, true); WriteLiteral("\r\n "); EndContext(); BeginContext(608, 90, false); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("e-row-field", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "63cbf5d99adf424aa9e56e2116614f30", async() => { BeginContext(666, 18, true); WriteLiteral("\r\n "); EndContext(); } ); __Syncfusion_JavaScript_Models_Field = CreateTagHelper <global::Syncfusion.JavaScript.Models.Field>(); __tagHelperExecutionContext.Add(__Syncfusion_JavaScript_Models_Field); __Syncfusion_JavaScript_Models_Field.FieldName = (string)__tagHelperAttribute_0.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_0); __Syncfusion_JavaScript_Models_Field.FieldCaption = (string)__tagHelperAttribute_1.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_1); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); if (!__tagHelperExecutionContext.Output.IsContentModified) { await __tagHelperExecutionContext.SetOutputContentAsync(); } Write(__tagHelperExecutionContext.Output); __tagHelperExecutionContext = __tagHelperScopeManager.End(); EndContext(); BeginContext(698, 14, true); WriteLiteral("\r\n "); EndContext(); } ); __Syncfusion_JavaScript_PivotGridTagHelperMocks = CreateTagHelper <global::Syncfusion.JavaScript.PivotGridTagHelperMocks>(); __tagHelperExecutionContext.Add(__Syncfusion_JavaScript_PivotGridTagHelperMocks); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); if (!__tagHelperExecutionContext.Output.IsContentModified) { await __tagHelperExecutionContext.SetOutputContentAsync(); } Write(__tagHelperExecutionContext.Output); __tagHelperExecutionContext = __tagHelperScopeManager.End(); EndContext(); BeginContext(727, 14, true); WriteLiteral("\r\n "); EndContext(); BeginContext(741, 139, false); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("e-pivot-columns", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "cc939e8a49814f2fb0fd39a285686cbd", async() => { BeginContext(758, 18, true); WriteLiteral("\r\n "); EndContext(); BeginContext(776, 72, false); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("e-column-field", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "ec3cc33815ef49a69d7ab1d5a446164a", async() => { } ); __Syncfusion_JavaScript_Models_Field = CreateTagHelper <global::Syncfusion.JavaScript.Models.Field>(); __tagHelperExecutionContext.Add(__Syncfusion_JavaScript_Models_Field); __Syncfusion_JavaScript_Models_Field.FieldName = (string)__tagHelperAttribute_2.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_2); __Syncfusion_JavaScript_Models_Field.FieldCaption = (string)__tagHelperAttribute_3.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_3); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); if (!__tagHelperExecutionContext.Output.IsContentModified) { await __tagHelperExecutionContext.SetOutputContentAsync(); } Write(__tagHelperExecutionContext.Output); __tagHelperExecutionContext = __tagHelperScopeManager.End(); EndContext(); BeginContext(848, 14, true); WriteLiteral("\r\n "); EndContext(); } ); __Syncfusion_JavaScript_PivotGridTagHelperMocks = CreateTagHelper <global::Syncfusion.JavaScript.PivotGridTagHelperMocks>(); __tagHelperExecutionContext.Add(__Syncfusion_JavaScript_PivotGridTagHelperMocks); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); if (!__tagHelperExecutionContext.Output.IsContentModified) { await __tagHelperExecutionContext.SetOutputContentAsync(); } Write(__tagHelperExecutionContext.Output); __tagHelperExecutionContext = __tagHelperScopeManager.End(); EndContext(); BeginContext(880, 14, true); WriteLiteral("\r\n "); EndContext(); BeginContext(894, 157, false); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("e-pivot-values", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "d8ad4b312dc04ed2a72a96d7bc0f2af4", async() => { BeginContext(910, 18, true); WriteLiteral("\r\n "); EndContext(); BeginContext(928, 92, false); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("e-value-field", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "db49e1cb7f8142f389fb248c2234a271", async() => { } ); __Syncfusion_JavaScript_Models_Field = CreateTagHelper <global::Syncfusion.JavaScript.Models.Field>(); __tagHelperExecutionContext.Add(__Syncfusion_JavaScript_Models_Field); __Syncfusion_JavaScript_Models_Field.FieldName = (string)__tagHelperAttribute_4.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_4); __Syncfusion_JavaScript_Models_Field.FieldCaption = (string)__tagHelperAttribute_5.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_5); __Syncfusion_JavaScript_Models_Field.Format = (string)__tagHelperAttribute_6.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_6); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); if (!__tagHelperExecutionContext.Output.IsContentModified) { await __tagHelperExecutionContext.SetOutputContentAsync(); } Write(__tagHelperExecutionContext.Output); __tagHelperExecutionContext = __tagHelperScopeManager.End(); EndContext(); BeginContext(1020, 14, true); WriteLiteral("\r\n "); EndContext(); } ); __Syncfusion_JavaScript_PivotGridTagHelperMocks = CreateTagHelper <global::Syncfusion.JavaScript.PivotGridTagHelperMocks>(); __tagHelperExecutionContext.Add(__Syncfusion_JavaScript_PivotGridTagHelperMocks); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); if (!__tagHelperExecutionContext.Output.IsContentModified) { await __tagHelperExecutionContext.SetOutputContentAsync(); } Write(__tagHelperExecutionContext.Output); __tagHelperExecutionContext = __tagHelperScopeManager.End(); EndContext(); BeginContext(1051, 10, true); WriteLiteral("\r\n "); EndContext(); } ); __Syncfusion_JavaScript_Models_PivotDataSource = CreateTagHelper <global::Syncfusion.JavaScript.Models.PivotDataSource>(); __tagHelperExecutionContext.Add(__Syncfusion_JavaScript_Models_PivotDataSource); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); if (!__tagHelperExecutionContext.Output.IsContentModified) { await __tagHelperExecutionContext.SetOutputContentAsync(); } Write(__tagHelperExecutionContext.Output); __tagHelperExecutionContext = __tagHelperScopeManager.End(); EndContext(); BeginContext(1077, 6, true); WriteLiteral("\r\n "); EndContext(); } ); __Syncfusion_JavaScript_Models_PivotGridProperties = CreateTagHelper <global::Syncfusion.JavaScript.Models.PivotGridProperties>(); __tagHelperExecutionContext.Add(__Syncfusion_JavaScript_Models_PivotGridProperties); __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_7); #line 8 "D:\Samples_17.2.0.46\ASPNETCORE\samplebrowser_core_2_0\Views\PivotGrid\UserInteraction.cshtml" __Syncfusion_JavaScript_Models_PivotGridProperties.EnableGroupingBar = true; #line default #line hidden __tagHelperExecutionContext.AddTagHelperAttribute("enable-grouping-bar", __Syncfusion_JavaScript_Models_PivotGridProperties.EnableGroupingBar, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); #line 8 "D:\Samples_17.2.0.46\ASPNETCORE\samplebrowser_core_2_0\Views\PivotGrid\UserInteraction.cshtml" __Syncfusion_JavaScript_Models_PivotGridProperties.IsResponsive = true; #line default #line hidden __tagHelperExecutionContext.AddTagHelperAttribute("is-responsive", __Syncfusion_JavaScript_Models_PivotGridProperties.IsResponsive, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); __Syncfusion_JavaScript_Models_PivotGridProperties.Load = (string)__tagHelperAttribute_8.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_8); __Syncfusion_JavaScript_Models_PivotGridProperties.PivotTableFieldListID = (string)__tagHelperAttribute_9.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_9); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); if (!__tagHelperExecutionContext.Output.IsContentModified) { await __tagHelperExecutionContext.SetOutputContentAsync(); } Write(__tagHelperExecutionContext.Output); __tagHelperExecutionContext = __tagHelperScopeManager.End(); EndContext(); BeginContext(1099, 6, true); WriteLiteral("\r\n "); EndContext(); BeginContext(1105, 79, false); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("ej-pivot-schema-designer", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "c8b26467700642dfa00f673d15474483", async() => { } ); __Syncfusion_JavaScript_PivotSchemaDesignerProperties = CreateTagHelper <global::Syncfusion.JavaScript.PivotSchemaDesignerProperties>(); __tagHelperExecutionContext.Add(__Syncfusion_JavaScript_PivotSchemaDesignerProperties); __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_10); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); if (!__tagHelperExecutionContext.Output.IsContentModified) { await __tagHelperExecutionContext.SetOutputContentAsync(); } Write(__tagHelperExecutionContext.Output); __tagHelperExecutionContext = __tagHelperScopeManager.End(); EndContext(); BeginContext(1184, 10, true); WriteLiteral("\r\n</div>\r\n"); EndContext(); } ); DefineSection("ScriptSection", async() => { BeginContext(1220, 6144, true); WriteLiteral(@" <script type=""text/javascript""> var pivot_dataset = [ { Amount: 100, Country: ""Canada"", Date: ""FY 2005"", Product: ""Bike"", Quantity: 2, State: ""Alberta"" }, { Amount: 200, Country: ""Canada"", Date: ""FY 2006"", Product: ""Van"", Quantity: 3, State: ""British Columbia"" }, { Amount: 300, Country: ""Canada"", Date: ""FY 2007"", Product: ""Car"", Quantity: 4, State: ""Brunswick"" }, { Amount: 150, Country: ""Canada"", Date: ""FY 2008"", Product: ""Bike"", Quantity: 3, State: ""Manitoba"" }, { Amount: 200, Country: ""Canada"", Date: ""FY 2006"", Product: ""Car"", Quantity: 4, State: ""Ontario"" }, { Amount: 100, Country: ""Canada"", Date: ""FY 2007"", Product: ""Van"", Quantity: 1, State: ""Quebec"" }, { Amount: 200, Country: ""France"", Date: ""FY 2005"", Prod"); WriteLiteral(@"uct: ""Bike"", Quantity: 2, State: ""Charente-Maritime"" }, { Amount: 250, Country: ""France"", Date: ""FY 2006"", Product: ""Van"", Quantity: 4, State: ""Essonne"" }, { Amount: 300, Country: ""France"", Date: ""FY 2007"", Product: ""Car"", Quantity: 3, State: ""Garonne (Haute)"" }, { Amount: 150, Country: ""France"", Date: ""FY 2008"", Product: ""Van"", Quantity: 2, State: ""Gers"" }, { Amount: 200, Country: ""Germany"", Date: ""FY 2006"", Product: ""Van"", Quantity: 3, State: ""Bayern"" }, { Amount: 250, Country: ""Germany"", Date: ""FY 2007"", Product: ""Car"", Quantity: 3, State: ""Brandenburg"" }, { Amount: 150, Country: ""Germany"", Date: ""FY 2008"", Product: ""Car"", Quantity: 4, State: ""Hamburg"" }, { Amount: 200, Country: ""Germany"", Date: ""FY 2008"", Product: ""Bike"", Q"); WriteLiteral(@"uantity: 4, State: ""Hessen"" }, { Amount: 150, Country: ""Germany"", Date: ""FY 2007"", Product: ""Van"", Quantity: 3, State: ""Nordrhein-Westfalen"" }, { Amount: 100, Country: ""Germany"", Date: ""FY 2005"", Product: ""Bike"", Quantity: 2, State: ""Saarland"" }, { Amount: 150, Country: ""United Kingdom"", Date: ""FY 2008"", Product: ""Bike"", Quantity: 5, State: ""England"" }, { Amount: 250, Country: ""United States"", Date: ""FY 2007"", Product: ""Car"", Quantity: 4, State: ""Alabama"" }, { Amount: 200, Country: ""United States"", Date: ""FY 2005"", Product: ""Van"", Quantity: 4, State: ""California"" }, { Amount: 100, Country: ""United States"", Date: ""FY 2006"", Product: ""Bike"", Quantity: 2, State: ""Colorado"" }, { Amount: 150, Country: ""United States"", Date: ""FY 2008"); WriteLiteral(@""", Product: ""Car"", Quantity: 3, State: ""New Mexico"" }, { Amount: 200, Country: ""United States"", Date: ""FY 2005"", Product: ""Bike"", Quantity: 4, State: ""New York"" }, { Amount: 250, Country: ""United States"", Date: ""FY 2008"", Product: ""Car"", Quantity: 3, State: ""North Carolina"" }, { Amount: 300, Country: ""United States"", Date: ""FY 2007"", Product: ""Van"", Quantity: 4, State: ""South Carolina"" } ]; function onload(args) { args.model.dataSource.data = pivot_dataset; } var pivotGrid, relationalRadioBtn, olapRadioBtn; $(function () { $(""#sampleProperties"").ejPropertiesPanel(); }); function renderGrid(args) { pivotGrid = $(""#PivotGrid1"").data(""ejPivotGrid""); relationalRadioBtn = $('#rdbRelational').data(""ejRadioButton""); olapRadioBtn = $('#rdbOlap'"); WriteLiteral(@").data(""ejRadioButton""); var pivotdataSource = { data: pivot_dataset, cube: """", rows: [{ fieldName: ""Country"", fieldCaption: ""Country"" }, { fieldName: ""State"", fieldCaption: ""State"" }], columns: [{ fieldName: ""Product"", fieldCaption: ""Product"" }], values: [{ fieldName: ""Amount"", fieldCaption: ""Amount"", format: ""currency"" }, { fieldName: ""Quantity"", fieldCaption: ""Quantity"" }], filters: [] }; var olapDataSource = { data: ""//bi.syncfusion.com/olap/msmdpump.dll"", catalog: ""Adventure Works DW 2008 SE"", cube: ""Adventure Works"", rows: [{ fieldName: ""[Date].[Fiscal]"" }], columns: [{ fieldName: ""[Customer].[Customer Geography]"" }], values: [{ measures: [{ fieldName: ""[Measures].[Internet Sales Amount]"" }], axis: ""columns"" }], filters: [] }; "); WriteLiteral(@" $("".e-pivotgrid"").remove(); $("".e-pivotschemadesigner"").remove(); var gridPanel = ej.buildTag(""div#PivotGrid1"", """")[0].outerHTML; var gridSchemaPanel = ej.buildTag(""div#PivotSchemaDesigner1"", """")[0].outerHTML; $(gridPanel).appendTo("".control""); $(gridSchemaPanel).appendTo("".control""); $(""#PivotGrid1"").ejPivotGrid({ dataSource: relationalRadioBtn.model.checked ? pivotdataSource : olapRadioBtn.model.checked ? olapDataSource : pivotdataSource, pivotTableFieldListID: ""PivotSchemaDesigner1"", isResponsive: true, enableGroupingBar: true, }); if (olapRadioBtn.model.checked) $(""#PivotSchemaDesigner1"").ejPivotSchemaDesigner({ olap: { showKPI: false, showNamedSets: true } }); else $(""#PivotSchemaDesigner1"").ejPivotSchemaDesigner(); } </script> </script> "); EndContext(); } ); DefineSection("StyleSection", async() => { BeginContext(7389, 971, true); WriteLiteral(@" <style> .e-pivotgrid { width: 55%; height: 630px; display: inline-block; float: left; overflow: auto; } .e-pivotschemadesigner { width: 40% !important; display: inline-block; margin-left: 10px; } .cols-prop-area { margin-top: 30px; width: 35%; height: 120px; min-height: 50px; float: left; } .radioBtnLabel { margin-left: 5px; } .cols-prop-area { width: 416px !important; min-height: 93px !important; } .col-md-3 { height: 30px !important; } .cols-sample-area { width: 100% !important; } </style> "); EndContext(); } ); DefineSection("PropertiesSection", async() => { BeginContext(8390, 264, true); WriteLiteral(@" <div id=""sampleProperties""> <div class=""prop-grid""> <div class=""row""> <div class=""col-md-3"" style=""width:120px""> Data Source </div> <div class=""col-md-3"" style=""width:120px""> "); EndContext(); BeginContext(8654, 173, false); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("ej-radio-button", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "6f0a1bb385b540199051067ebfaaed24", async() => { } ); __Syncfusion_JavaScript_Models_RadioButtonProperties = CreateTagHelper <global::Syncfusion.JavaScript.Models.RadioButtonProperties>(); __tagHelperExecutionContext.Add(__Syncfusion_JavaScript_Models_RadioButtonProperties); __Syncfusion_JavaScript_Models_RadioButtonProperties.Id = (string)__tagHelperAttribute_11.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_11); __Syncfusion_JavaScript_Models_RadioButtonProperties.Name = (string)__tagHelperAttribute_12.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_12); #line 146 "D:\Samples_17.2.0.46\ASPNETCORE\samplebrowser_core_2_0\Views\PivotGrid\UserInteraction.cshtml" __Syncfusion_JavaScript_Models_RadioButtonProperties.Size = RadioButtonSize.Small; #line default #line hidden __tagHelperExecutionContext.AddTagHelperAttribute("size", __Syncfusion_JavaScript_Models_RadioButtonProperties.Size, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); #line 146 "D:\Samples_17.2.0.46\ASPNETCORE\samplebrowser_core_2_0\Views\PivotGrid\UserInteraction.cshtml" __Syncfusion_JavaScript_Models_RadioButtonProperties.Checked = true; #line default #line hidden __tagHelperExecutionContext.AddTagHelperAttribute("checked", __Syncfusion_JavaScript_Models_RadioButtonProperties.Checked, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); #line 146 "D:\Samples_17.2.0.46\ASPNETCORE\samplebrowser_core_2_0\Views\PivotGrid\UserInteraction.cshtml" __Syncfusion_JavaScript_Models_RadioButtonProperties.Enabled = true; #line default #line hidden __tagHelperExecutionContext.AddTagHelperAttribute("enabled", __Syncfusion_JavaScript_Models_RadioButtonProperties.Enabled, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); __Syncfusion_JavaScript_Models_RadioButtonProperties.Text = (string)__tagHelperAttribute_13.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_13); __Syncfusion_JavaScript_Models_RadioButtonProperties.Value = (string)__tagHelperAttribute_14.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_14); __Syncfusion_JavaScript_Models_RadioButtonProperties.Change = (string)__tagHelperAttribute_15.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_15); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); if (!__tagHelperExecutionContext.Output.IsContentModified) { await __tagHelperExecutionContext.SetOutputContentAsync(); } Write(__tagHelperExecutionContext.Output); __tagHelperExecutionContext = __tagHelperScopeManager.End(); EndContext(); BeginContext(8827, 94, true); WriteLiteral("\r\n </div>\r\n <div class=\"col-md-3\" style=\"width:120px\">\r\n "); EndContext(); BeginContext(8921, 156, false); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("ej-radio-button", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "ad28c43f29e84e1b8d0a0ceaa06ad2bf", async() => { } ); __Syncfusion_JavaScript_Models_RadioButtonProperties = CreateTagHelper <global::Syncfusion.JavaScript.Models.RadioButtonProperties>(); __tagHelperExecutionContext.Add(__Syncfusion_JavaScript_Models_RadioButtonProperties); __Syncfusion_JavaScript_Models_RadioButtonProperties.Id = (string)__tagHelperAttribute_16.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_16); __Syncfusion_JavaScript_Models_RadioButtonProperties.Name = (string)__tagHelperAttribute_12.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_12); #line 149 "D:\Samples_17.2.0.46\ASPNETCORE\samplebrowser_core_2_0\Views\PivotGrid\UserInteraction.cshtml" __Syncfusion_JavaScript_Models_RadioButtonProperties.Size = RadioButtonSize.Small; #line default #line hidden __tagHelperExecutionContext.AddTagHelperAttribute("size", __Syncfusion_JavaScript_Models_RadioButtonProperties.Size, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); #line 149 "D:\Samples_17.2.0.46\ASPNETCORE\samplebrowser_core_2_0\Views\PivotGrid\UserInteraction.cshtml" __Syncfusion_JavaScript_Models_RadioButtonProperties.Checked = false; #line default #line hidden __tagHelperExecutionContext.AddTagHelperAttribute("checked", __Syncfusion_JavaScript_Models_RadioButtonProperties.Checked, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); #line 149 "D:\Samples_17.2.0.46\ASPNETCORE\samplebrowser_core_2_0\Views\PivotGrid\UserInteraction.cshtml" __Syncfusion_JavaScript_Models_RadioButtonProperties.Enabled = true; #line default #line hidden __tagHelperExecutionContext.AddTagHelperAttribute("enabled", __Syncfusion_JavaScript_Models_RadioButtonProperties.Enabled, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); __Syncfusion_JavaScript_Models_RadioButtonProperties.Text = (string)__tagHelperAttribute_17.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_17); __Syncfusion_JavaScript_Models_RadioButtonProperties.Value = (string)__tagHelperAttribute_18.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_18); __Syncfusion_JavaScript_Models_RadioButtonProperties.Change = (string)__tagHelperAttribute_15.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_15); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); if (!__tagHelperExecutionContext.Output.IsContentModified) { await __tagHelperExecutionContext.SetOutputContentAsync(); } Write(__tagHelperExecutionContext.Output); __tagHelperExecutionContext = __tagHelperScopeManager.End(); EndContext(); BeginContext(9077, 58, true); WriteLiteral("\r\n </div>\r\n </div>\r\n </div>\r\n</div>\r\n"); EndContext(); } ); }
#pragma warning disable 1998 public async override global::System.Threading.Tasks.Task ExecuteAsync() { DefineSection("SampleHeading", async() => { BeginContext(54, 61, true); WriteLiteral("<span class=\"sampleName\">PivotGrid / User Interaction</span> "); EndContext(); } ); DefineSection("MetaTags", async() => { BeginContext(136, 202, true); WriteLiteral("\r\n <meta name=\"description\" content=\"This demo for Syncfusion Essential JS1 for ASP.NET Core Pivot Grid control shows how to re-arrange the fields to change pivot report and pivot view at runtime\">\r\n"); EndContext(); } ); DefineSection("ControlsSection", async() => { BeginContext(366, 29, true); WriteLiteral("\r\n<div class=\"control\">\r\n "); EndContext(); BeginContext(395, 704, false); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("ej-pivot-grid", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "6ab7a6a249ed4ff4b75ab08e9f2e9495", async() => { BeginContext(537, 10, true); WriteLiteral("\r\n "); EndContext(); BeginContext(547, 530, false); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("e-data-source", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "680183e537cd4a699fd0710a7944a685", async() => { BeginContext(562, 14, true); WriteLiteral("\r\n "); EndContext(); BeginContext(576, 151, false); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("e-pivot-rows", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "3b58d8d917664d448a2a56882fa9ea17", async() => { BeginContext(590, 18, true); WriteLiteral("\r\n "); EndContext(); BeginContext(608, 90, false); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("e-row-field", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "39f353f928c8459aa0f393dfeae1d92c", async() => { BeginContext(666, 18, true); WriteLiteral("\r\n "); EndContext(); } ); __Syncfusion_JavaScript_Models_Field = CreateTagHelper <global::Syncfusion.JavaScript.Models.Field>(); __tagHelperExecutionContext.Add(__Syncfusion_JavaScript_Models_Field); __Syncfusion_JavaScript_Models_Field.FieldName = (string)__tagHelperAttribute_0.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_0); __Syncfusion_JavaScript_Models_Field.FieldCaption = (string)__tagHelperAttribute_1.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_1); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); if (!__tagHelperExecutionContext.Output.IsContentModified) { await __tagHelperExecutionContext.SetOutputContentAsync(); } Write(__tagHelperExecutionContext.Output); __tagHelperExecutionContext = __tagHelperScopeManager.End(); EndContext(); BeginContext(698, 14, true); WriteLiteral("\r\n "); EndContext(); } ); __Syncfusion_JavaScript_PivotGridTagHelperMocks = CreateTagHelper <global::Syncfusion.JavaScript.PivotGridTagHelperMocks>(); __tagHelperExecutionContext.Add(__Syncfusion_JavaScript_PivotGridTagHelperMocks); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); if (!__tagHelperExecutionContext.Output.IsContentModified) { await __tagHelperExecutionContext.SetOutputContentAsync(); } Write(__tagHelperExecutionContext.Output); __tagHelperExecutionContext = __tagHelperScopeManager.End(); EndContext(); BeginContext(727, 14, true); WriteLiteral("\r\n "); EndContext(); BeginContext(741, 139, false); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("e-pivot-columns", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "363bd124f61d4d19ac93be7931be9dfc", async() => { BeginContext(758, 18, true); WriteLiteral("\r\n "); EndContext(); BeginContext(776, 72, false); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("e-column-field", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "a00a5f3cac33420bb5218a3e3dea620a", async() => { } ); __Syncfusion_JavaScript_Models_Field = CreateTagHelper <global::Syncfusion.JavaScript.Models.Field>(); __tagHelperExecutionContext.Add(__Syncfusion_JavaScript_Models_Field); __Syncfusion_JavaScript_Models_Field.FieldName = (string)__tagHelperAttribute_2.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_2); __Syncfusion_JavaScript_Models_Field.FieldCaption = (string)__tagHelperAttribute_3.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_3); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); if (!__tagHelperExecutionContext.Output.IsContentModified) { await __tagHelperExecutionContext.SetOutputContentAsync(); } Write(__tagHelperExecutionContext.Output); __tagHelperExecutionContext = __tagHelperScopeManager.End(); EndContext(); BeginContext(848, 14, true); WriteLiteral("\r\n "); EndContext(); } ); __Syncfusion_JavaScript_PivotGridTagHelperMocks = CreateTagHelper <global::Syncfusion.JavaScript.PivotGridTagHelperMocks>(); __tagHelperExecutionContext.Add(__Syncfusion_JavaScript_PivotGridTagHelperMocks); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); if (!__tagHelperExecutionContext.Output.IsContentModified) { await __tagHelperExecutionContext.SetOutputContentAsync(); } Write(__tagHelperExecutionContext.Output); __tagHelperExecutionContext = __tagHelperScopeManager.End(); EndContext(); BeginContext(880, 14, true); WriteLiteral("\r\n "); EndContext(); BeginContext(894, 157, false); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("e-pivot-values", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "9f68ed0cb5ff4af992153c844ed17d67", async() => { BeginContext(910, 18, true); WriteLiteral("\r\n "); EndContext(); BeginContext(928, 92, false); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("e-value-field", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "e721b73dc1d640da9526a48f0f848b9b", async() => { } ); __Syncfusion_JavaScript_Models_Field = CreateTagHelper <global::Syncfusion.JavaScript.Models.Field>(); __tagHelperExecutionContext.Add(__Syncfusion_JavaScript_Models_Field); __Syncfusion_JavaScript_Models_Field.FieldName = (string)__tagHelperAttribute_4.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_4); __Syncfusion_JavaScript_Models_Field.FieldCaption = (string)__tagHelperAttribute_5.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_5); __Syncfusion_JavaScript_Models_Field.Format = (string)__tagHelperAttribute_6.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_6); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); if (!__tagHelperExecutionContext.Output.IsContentModified) { await __tagHelperExecutionContext.SetOutputContentAsync(); } Write(__tagHelperExecutionContext.Output); __tagHelperExecutionContext = __tagHelperScopeManager.End(); EndContext(); BeginContext(1020, 14, true); WriteLiteral("\r\n "); EndContext(); } ); __Syncfusion_JavaScript_PivotGridTagHelperMocks = CreateTagHelper <global::Syncfusion.JavaScript.PivotGridTagHelperMocks>(); __tagHelperExecutionContext.Add(__Syncfusion_JavaScript_PivotGridTagHelperMocks); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); if (!__tagHelperExecutionContext.Output.IsContentModified) { await __tagHelperExecutionContext.SetOutputContentAsync(); } Write(__tagHelperExecutionContext.Output); __tagHelperExecutionContext = __tagHelperScopeManager.End(); EndContext(); BeginContext(1051, 10, true); WriteLiteral("\r\n "); EndContext(); } ); __Syncfusion_JavaScript_Models_PivotDataSource = CreateTagHelper <global::Syncfusion.JavaScript.Models.PivotDataSource>(); __tagHelperExecutionContext.Add(__Syncfusion_JavaScript_Models_PivotDataSource); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); if (!__tagHelperExecutionContext.Output.IsContentModified) { await __tagHelperExecutionContext.SetOutputContentAsync(); } Write(__tagHelperExecutionContext.Output); __tagHelperExecutionContext = __tagHelperScopeManager.End(); EndContext(); BeginContext(1077, 6, true); WriteLiteral("\r\n "); EndContext(); } ); __Syncfusion_JavaScript_Models_PivotGridProperties = CreateTagHelper <global::Syncfusion.JavaScript.Models.PivotGridProperties>(); __tagHelperExecutionContext.Add(__Syncfusion_JavaScript_Models_PivotGridProperties); __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_7); #line 8 "D:\Samples_17.2.0.46\ASPNETCORE\samplebrowser_core_2_0\Views\PivotGrid\UserInteraction.cshtml" __Syncfusion_JavaScript_Models_PivotGridProperties.EnableGroupingBar = true; #line default #line hidden __tagHelperExecutionContext.AddTagHelperAttribute("enable-grouping-bar", __Syncfusion_JavaScript_Models_PivotGridProperties.EnableGroupingBar, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); #line 8 "D:\Samples_17.2.0.46\ASPNETCORE\samplebrowser_core_2_0\Views\PivotGrid\UserInteraction.cshtml" __Syncfusion_JavaScript_Models_PivotGridProperties.IsResponsive = true; #line default #line hidden __tagHelperExecutionContext.AddTagHelperAttribute("is-responsive", __Syncfusion_JavaScript_Models_PivotGridProperties.IsResponsive, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); __Syncfusion_JavaScript_Models_PivotGridProperties.Load = (string)__tagHelperAttribute_8.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_8); __Syncfusion_JavaScript_Models_PivotGridProperties.PivotTableFieldListID = (string)__tagHelperAttribute_9.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_9); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); if (!__tagHelperExecutionContext.Output.IsContentModified) { await __tagHelperExecutionContext.SetOutputContentAsync(); } Write(__tagHelperExecutionContext.Output); __tagHelperExecutionContext = __tagHelperScopeManager.End(); EndContext(); BeginContext(1099, 6, true); WriteLiteral("\r\n "); EndContext(); BeginContext(1105, 79, false); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("ej-pivot-schema-designer", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "ca189513fc49432abd423cc7fc35add1", async() => { } ); __Syncfusion_JavaScript_PivotSchemaDesignerProperties = CreateTagHelper <global::Syncfusion.JavaScript.PivotSchemaDesignerProperties>(); __tagHelperExecutionContext.Add(__Syncfusion_JavaScript_PivotSchemaDesignerProperties); __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_10); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); if (!__tagHelperExecutionContext.Output.IsContentModified) { await __tagHelperExecutionContext.SetOutputContentAsync(); } Write(__tagHelperExecutionContext.Output); __tagHelperExecutionContext = __tagHelperScopeManager.End(); EndContext(); BeginContext(1184, 10, true); WriteLiteral("\r\n</div>\r\n"); EndContext(); } ); DefineSection("ScriptSection", async() => { BeginContext(1220, 6144, true); WriteLiteral(@" <script type=""text/javascript""> var pivot_dataset = [ { Amount: 100, Country: ""Canada"", Date: ""FY 2005"", Product: ""Bike"", Quantity: 2, State: ""Alberta"" }, { Amount: 200, Country: ""Canada"", Date: ""FY 2006"", Product: ""Van"", Quantity: 3, State: ""British Columbia"" }, { Amount: 300, Country: ""Canada"", Date: ""FY 2007"", Product: ""Car"", Quantity: 4, State: ""Brunswick"" }, { Amount: 150, Country: ""Canada"", Date: ""FY 2008"", Product: ""Bike"", Quantity: 3, State: ""Manitoba"" }, { Amount: 200, Country: ""Canada"", Date: ""FY 2006"", Product: ""Car"", Quantity: 4, State: ""Ontario"" }, { Amount: 100, Country: ""Canada"", Date: ""FY 2007"", Product: ""Van"", Quantity: 1, State: ""Quebec"" }, { Amount: 200, Country: ""France"", Date: ""FY 2005"", Prod"); WriteLiteral(@"uct: ""Bike"", Quantity: 2, State: ""Charente-Maritime"" }, { Amount: 250, Country: ""France"", Date: ""FY 2006"", Product: ""Van"", Quantity: 4, State: ""Essonne"" }, { Amount: 300, Country: ""France"", Date: ""FY 2007"", Product: ""Car"", Quantity: 3, State: ""Garonne (Haute)"" }, { Amount: 150, Country: ""France"", Date: ""FY 2008"", Product: ""Van"", Quantity: 2, State: ""Gers"" }, { Amount: 200, Country: ""Germany"", Date: ""FY 2006"", Product: ""Van"", Quantity: 3, State: ""Bayern"" }, { Amount: 250, Country: ""Germany"", Date: ""FY 2007"", Product: ""Car"", Quantity: 3, State: ""Brandenburg"" }, { Amount: 150, Country: ""Germany"", Date: ""FY 2008"", Product: ""Car"", Quantity: 4, State: ""Hamburg"" }, { Amount: 200, Country: ""Germany"", Date: ""FY 2008"", Product: ""Bike"", Q"); WriteLiteral(@"uantity: 4, State: ""Hessen"" }, { Amount: 150, Country: ""Germany"", Date: ""FY 2007"", Product: ""Van"", Quantity: 3, State: ""Nordrhein-Westfalen"" }, { Amount: 100, Country: ""Germany"", Date: ""FY 2005"", Product: ""Bike"", Quantity: 2, State: ""Saarland"" }, { Amount: 150, Country: ""United Kingdom"", Date: ""FY 2008"", Product: ""Bike"", Quantity: 5, State: ""England"" }, { Amount: 250, Country: ""United States"", Date: ""FY 2007"", Product: ""Car"", Quantity: 4, State: ""Alabama"" }, { Amount: 200, Country: ""United States"", Date: ""FY 2005"", Product: ""Van"", Quantity: 4, State: ""California"" }, { Amount: 100, Country: ""United States"", Date: ""FY 2006"", Product: ""Bike"", Quantity: 2, State: ""Colorado"" }, { Amount: 150, Country: ""United States"", Date: ""FY 2008"); WriteLiteral(@""", Product: ""Car"", Quantity: 3, State: ""New Mexico"" }, { Amount: 200, Country: ""United States"", Date: ""FY 2005"", Product: ""Bike"", Quantity: 4, State: ""New York"" }, { Amount: 250, Country: ""United States"", Date: ""FY 2008"", Product: ""Car"", Quantity: 3, State: ""North Carolina"" }, { Amount: 300, Country: ""United States"", Date: ""FY 2007"", Product: ""Van"", Quantity: 4, State: ""South Carolina"" } ]; function onload(args) { args.model.dataSource.data = pivot_dataset; } var pivotGrid, relationalRadioBtn, olapRadioBtn; $(function () { $(""#sampleProperties"").ejPropertiesPanel(); }); function renderGrid(args) { pivotGrid = $(""#PivotGrid1"").data(""ejPivotGrid""); relationalRadioBtn = $('#rdbRelational').data(""ejRadioButton""); olapRadioBtn = $('#rdbOlap'"); WriteLiteral(@").data(""ejRadioButton""); var pivotdataSource = { data: pivot_dataset, cube: """", rows: [{ fieldName: ""Country"", fieldCaption: ""Country"" }, { fieldName: ""State"", fieldCaption: ""State"" }], columns: [{ fieldName: ""Product"", fieldCaption: ""Product"" }], values: [{ fieldName: ""Amount"", fieldCaption: ""Amount"", format: ""currency"" }, { fieldName: ""Quantity"", fieldCaption: ""Quantity"" }], filters: [] }; var olapDataSource = { data: ""//bi.syncfusion.com/olap/msmdpump.dll"", catalog: ""Adventure Works DW 2008 SE"", cube: ""Adventure Works"", rows: [{ fieldName: ""[Date].[Fiscal]"" }], columns: [{ fieldName: ""[Customer].[Customer Geography]"" }], values: [{ measures: [{ fieldName: ""[Measures].[Internet Sales Amount]"" }], axis: ""columns"" }], filters: [] }; "); WriteLiteral(@" $("".e-pivotgrid"").remove(); $("".e-pivotschemadesigner"").remove(); var gridPanel = ej.buildTag(""div#PivotGrid1"", """")[0].outerHTML; var gridSchemaPanel = ej.buildTag(""div#PivotSchemaDesigner1"", """")[0].outerHTML; $(gridPanel).appendTo("".control""); $(gridSchemaPanel).appendTo("".control""); $(""#PivotGrid1"").ejPivotGrid({ dataSource: relationalRadioBtn.model.checked ? pivotdataSource : olapRadioBtn.model.checked ? olapDataSource : pivotdataSource, pivotTableFieldListID: ""PivotSchemaDesigner1"", isResponsive: true, enableGroupingBar: true, }); if (olapRadioBtn.model.checked) $(""#PivotSchemaDesigner1"").ejPivotSchemaDesigner({ olap: { showKPI: false, showNamedSets: true } }); else $(""#PivotSchemaDesigner1"").ejPivotSchemaDesigner(); } </script> </script> "); EndContext(); } ); DefineSection("StyleSection", async() => { BeginContext(7389, 971, true); WriteLiteral(@" <style> .e-pivotgrid { width: 55%; height: 630px; display: inline-block; float: left; overflow: auto; } .e-pivotschemadesigner { width: 40% !important; display: inline-block; margin-left: 10px; } .cols-prop-area { margin-top: 30px; width: 35%; height: 120px; min-height: 50px; float: left; } .radioBtnLabel { margin-left: 5px; } .cols-prop-area { width: 416px !important; min-height: 93px !important; } .col-md-3 { height: 30px !important; } .cols-sample-area { width: 100% !important; } </style> "); EndContext(); } ); DefineSection("PropertiesSection", async() => { BeginContext(8390, 264, true); WriteLiteral(@" <div id=""sampleProperties""> <div class=""prop-grid""> <div class=""row""> <div class=""col-md-3"" style=""width:120px""> Data Source </div> <div class=""col-md-3"" style=""width:120px""> "); EndContext(); BeginContext(8654, 173, false); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("ej-radio-button", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "03795e7e844e44559ae546349bdc9360", async() => { } ); __Syncfusion_JavaScript_Models_RadioButtonProperties = CreateTagHelper <global::Syncfusion.JavaScript.Models.RadioButtonProperties>(); __tagHelperExecutionContext.Add(__Syncfusion_JavaScript_Models_RadioButtonProperties); __Syncfusion_JavaScript_Models_RadioButtonProperties.Id = (string)__tagHelperAttribute_11.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_11); __Syncfusion_JavaScript_Models_RadioButtonProperties.Name = (string)__tagHelperAttribute_12.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_12); #line 146 "D:\Samples_17.2.0.46\ASPNETCORE\samplebrowser_core_2_0\Views\PivotGrid\UserInteraction.cshtml" __Syncfusion_JavaScript_Models_RadioButtonProperties.Size = RadioButtonSize.Small; #line default #line hidden __tagHelperExecutionContext.AddTagHelperAttribute("size", __Syncfusion_JavaScript_Models_RadioButtonProperties.Size, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); #line 146 "D:\Samples_17.2.0.46\ASPNETCORE\samplebrowser_core_2_0\Views\PivotGrid\UserInteraction.cshtml" __Syncfusion_JavaScript_Models_RadioButtonProperties.Checked = true; #line default #line hidden __tagHelperExecutionContext.AddTagHelperAttribute("checked", __Syncfusion_JavaScript_Models_RadioButtonProperties.Checked, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); #line 146 "D:\Samples_17.2.0.46\ASPNETCORE\samplebrowser_core_2_0\Views\PivotGrid\UserInteraction.cshtml" __Syncfusion_JavaScript_Models_RadioButtonProperties.Enabled = true; #line default #line hidden __tagHelperExecutionContext.AddTagHelperAttribute("enabled", __Syncfusion_JavaScript_Models_RadioButtonProperties.Enabled, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); __Syncfusion_JavaScript_Models_RadioButtonProperties.Text = (string)__tagHelperAttribute_13.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_13); __Syncfusion_JavaScript_Models_RadioButtonProperties.Value = (string)__tagHelperAttribute_14.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_14); __Syncfusion_JavaScript_Models_RadioButtonProperties.Change = (string)__tagHelperAttribute_15.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_15); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); if (!__tagHelperExecutionContext.Output.IsContentModified) { await __tagHelperExecutionContext.SetOutputContentAsync(); } Write(__tagHelperExecutionContext.Output); __tagHelperExecutionContext = __tagHelperScopeManager.End(); EndContext(); BeginContext(8827, 94, true); WriteLiteral("\r\n </div>\r\n <div class=\"col-md-3\" style=\"width:120px\">\r\n "); EndContext(); BeginContext(8921, 156, false); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("ej-radio-button", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "8fe61225e90645bca41dd4eff31ec036", async() => { } ); __Syncfusion_JavaScript_Models_RadioButtonProperties = CreateTagHelper <global::Syncfusion.JavaScript.Models.RadioButtonProperties>(); __tagHelperExecutionContext.Add(__Syncfusion_JavaScript_Models_RadioButtonProperties); __Syncfusion_JavaScript_Models_RadioButtonProperties.Id = (string)__tagHelperAttribute_16.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_16); __Syncfusion_JavaScript_Models_RadioButtonProperties.Name = (string)__tagHelperAttribute_12.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_12); #line 149 "D:\Samples_17.2.0.46\ASPNETCORE\samplebrowser_core_2_0\Views\PivotGrid\UserInteraction.cshtml" __Syncfusion_JavaScript_Models_RadioButtonProperties.Size = RadioButtonSize.Small; #line default #line hidden __tagHelperExecutionContext.AddTagHelperAttribute("size", __Syncfusion_JavaScript_Models_RadioButtonProperties.Size, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); #line 149 "D:\Samples_17.2.0.46\ASPNETCORE\samplebrowser_core_2_0\Views\PivotGrid\UserInteraction.cshtml" __Syncfusion_JavaScript_Models_RadioButtonProperties.Checked = false; #line default #line hidden __tagHelperExecutionContext.AddTagHelperAttribute("checked", __Syncfusion_JavaScript_Models_RadioButtonProperties.Checked, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); #line 149 "D:\Samples_17.2.0.46\ASPNETCORE\samplebrowser_core_2_0\Views\PivotGrid\UserInteraction.cshtml" __Syncfusion_JavaScript_Models_RadioButtonProperties.Enabled = true; #line default #line hidden __tagHelperExecutionContext.AddTagHelperAttribute("enabled", __Syncfusion_JavaScript_Models_RadioButtonProperties.Enabled, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); __Syncfusion_JavaScript_Models_RadioButtonProperties.Text = (string)__tagHelperAttribute_17.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_17); __Syncfusion_JavaScript_Models_RadioButtonProperties.Value = (string)__tagHelperAttribute_18.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_18); __Syncfusion_JavaScript_Models_RadioButtonProperties.Change = (string)__tagHelperAttribute_15.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_15); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); if (!__tagHelperExecutionContext.Output.IsContentModified) { await __tagHelperExecutionContext.SetOutputContentAsync(); } Write(__tagHelperExecutionContext.Output); __tagHelperExecutionContext = __tagHelperScopeManager.End(); EndContext(); BeginContext(9077, 58, true); WriteLiteral("\r\n </div>\r\n </div>\r\n </div>\r\n</div>\r\n"); EndContext(); } ); }