Exemple #1
0
        #pragma warning disable 1998
        public async override global::System.Threading.Tasks.Task ExecuteAsync()
        {
            DefineSection("SampleHeading", async() => {
                BeginContext(23, 69, true);
                WriteLiteral("\r\n    <span class=\"sampleName\">Menu / Databinding - Local data</span>");
                EndContext();
            }
                          );
            DefineSection("ControlsSection", async() => {
                BeginContext(120, 7, true);
                WriteLiteral("\r\n\r\n   ");
                EndContext();
                BeginContext(127, 189, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("ej-Menu", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "c5d610bad9354abcb403d5779ffe1cef", async() => {
                    BeginContext(150, 11, true);
                    WriteLiteral("\r\n\r\n       ");
                    EndContext();
                    BeginContext(161, 130, false);
                    __tagHelperExecutionContext = __tagHelperScopeManager.Begin("e-menu-fields", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "a3302eecb94c4b0b978a5542c8b613cf", async() => {
                    }
                                                                                );
                    __Syncfusion_JavaScript_Models_MenuFields = CreateTagHelper <global::Syncfusion.JavaScript.Models.MenuFields>();
                    __tagHelperExecutionContext.Add(__Syncfusion_JavaScript_Models_MenuFields);
#line 7 "D:\Samples_17.2.0.46\ASPNETCORE\samplebrowser_core_2_0\Views\Menu\DatabindingJson.cshtml"
                    __Syncfusion_JavaScript_Models_MenuFields.DataSource = ViewBag.datasource;

#line default
#line hidden
                    __tagHelperExecutionContext.AddTagHelperAttribute("dataSource", __Syncfusion_JavaScript_Models_MenuFields.DataSource, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
                    __Syncfusion_JavaScript_Models_MenuFields.Id = (string)__tagHelperAttribute_0.Value;
                    __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_0);
                    __Syncfusion_JavaScript_Models_MenuFields.Text = (string)__tagHelperAttribute_1.Value;
                    __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_1);
                    __Syncfusion_JavaScript_Models_MenuFields.ParentId = (string)__tagHelperAttribute_2.Value;
                    __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_2);
                    __Syncfusion_JavaScript_Models_MenuFields.SpriteCssClass = (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(291, 15, true);
                    WriteLiteral("\r\n           \r\n");
                    EndContext();
                }
                                                                            );
                __Syncfusion_JavaScript_Models_MenuProperties = CreateTagHelper <global::Syncfusion.JavaScript.Models.MenuProperties>();
                __tagHelperExecutionContext.Add(__Syncfusion_JavaScript_Models_MenuProperties);
                __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_4);
                await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
                if (!__tagHelperExecutionContext.Output.IsContentModified)
                {
                    await __tagHelperExecutionContext.SetOutputContentAsync();
                }
                Write(__tagHelperExecutionContext.Output);
                __tagHelperExecutionContext = __tagHelperScopeManager.End();
                EndContext();
                BeginContext(316, 7, true);
                WriteLiteral("\r\n   \r\n");
                EndContext();
            }
                          );
            DefineSection("StyleSection", async() => {
                BeginContext(348, 448, true);
                WriteLiteral(@"
    <style type=""text/css"">
        #menujson {
            margin-left: 50px;
        }

        .e-menu li > ul > li > a {
            padding: 3px 24px 3px 35px;
        }

        [class^=""flag-""],
        [class*=""flag-""] {
            background-image: url(""../images/autocomplete/flags.png"");
            height: 14px;
            left: 2px;
            top: 4px;
            width: 24px;
        }
    </style>
    <link");
                EndContext();
                BeginWriteAttribute("href", " href=\"", 796, "\"", 845, 1);
#line 31 "D:\Samples_17.2.0.46\ASPNETCORE\samplebrowser_core_2_0\Views\Menu\DatabindingJson.cshtml"
                WriteAttributeValue("", 803, Url.Content("~/css/Samples/MenuJson.css"), 803, 42, false);

#line default
#line hidden
                EndWriteAttribute();
                BeginContext(846, 22, true);
                WriteLiteral(" rel=\"stylesheet\" />\r\n");
                EndContext();
            }
                          );
        }
        #pragma warning disable 1998
        public async override global::System.Threading.Tasks.Task ExecuteAsync()
        {
            DefineSection("SampleHeading", async() => {
                BeginContext(23, 71, true);
                WriteLiteral("\r\n    <span class=\"sampleName\">Menu / Data Binding - Remote Data</span>");
                EndContext();
            }
                          );
            DefineSection("ControlsSection", async() => {
                BeginContext(122, 8, true);
                WriteLiteral("\r\n\r\n    ");
                EndContext();
                BeginContext(130, 336, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("ej-Menu", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "8c114db91487426282af861ff24b54c1", async() => {
                    BeginContext(156, 10, true);
                    WriteLiteral("\r\n        ");
                    EndContext();
                    BeginContext(166, 284, false);
                    __tagHelperExecutionContext = __tagHelperScopeManager.Begin("e-menu-fields", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "c471a63cd83b40d68895705d487a986e", async() => {
                        BeginContext(297, 14, true);
                        WriteLiteral("\r\n            ");
                        EndContext();
                        BeginContext(311, 113, false);
                        __tagHelperExecutionContext = __tagHelperScopeManager.Begin("e-datamanager", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "0999627652a44a3290e117a1c974d3d6", async() => {
                        }
                                                                                    );
                        __Syncfusion_JavaScript_DataSource = CreateTagHelper <global::Syncfusion.JavaScript.DataSource>();
                        __tagHelperExecutionContext.Add(__Syncfusion_JavaScript_DataSource);
                        __Syncfusion_JavaScript_DataSource.URL = (string)__tagHelperAttribute_0.Value;
                        __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_0);
#line 7 "D:\Samples_17.2.0.46\ASPNETCORE\samplebrowser_core_2_0\Views\Menu\Databindingremote.cshtml"
                        __Syncfusion_JavaScript_DataSource.CrossDomain = true;

#line default
#line hidden
                        __tagHelperExecutionContext.AddTagHelperAttribute("cross-domain", __Syncfusion_JavaScript_DataSource.CrossDomain, 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(424, 10, true);
                        WriteLiteral("\r\n        ");
                        EndContext();
                    }
                                                                                );
                    __Syncfusion_JavaScript_Models_MenuFields = CreateTagHelper <global::Syncfusion.JavaScript.Models.MenuFields>();
                    __tagHelperExecutionContext.Add(__Syncfusion_JavaScript_Models_MenuFields);
                    __Syncfusion_JavaScript_Models_MenuFields.Query = (string)__tagHelperAttribute_1.Value;
                    __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_1);
                    __Syncfusion_JavaScript_Models_MenuFields.Id = (string)__tagHelperAttribute_2.Value;
                    __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_2);
                    __Syncfusion_JavaScript_Models_MenuFields.Text = (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(450, 6, true);
                    WriteLiteral("\r\n    ");
                    EndContext();
                }
                                                                            );
                __Syncfusion_JavaScript_Models_MenuProperties = CreateTagHelper <global::Syncfusion.JavaScript.Models.MenuProperties>();
                __tagHelperExecutionContext.Add(__Syncfusion_JavaScript_Models_MenuProperties);
                __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_4);
                await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
                if (!__tagHelperExecutionContext.Output.IsContentModified)
                {
                    await __tagHelperExecutionContext.SetOutputContentAsync();
                }
                Write(__tagHelperExecutionContext.Output);
                __tagHelperExecutionContext = __tagHelperScopeManager.End();
                EndContext();
                BeginContext(466, 4, true);
                WriteLiteral("\r\n\r\n");
                EndContext();
            }
                          );
        }
Exemple #3
0
        #pragma warning disable 1998
        public async override global::System.Threading.Tasks.Task ExecuteAsync()
        {
            DefineSection("SampleHeading", async() => {
                BeginContext(23, 71, true);
                WriteLiteral("\r\n    <span class=\"sampleName\">Menu / Data Binding - Remote Data</span>");
                EndContext();
            }
                          );
            DefineSection("ControlsSection", async() => {
                BeginContext(122, 8, true);
                WriteLiteral("\r\n\r\n    ");
                EndContext();
                BeginContext(130, 336, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("ej-Menu", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "cf0598c1bdb34cb291d2b56a65770d45", async() => {
                    BeginContext(156, 10, true);
                    WriteLiteral("\r\n        ");
                    EndContext();
                    BeginContext(166, 284, false);
                    __tagHelperExecutionContext = __tagHelperScopeManager.Begin("e-menu-fields", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "401f4c2d48604aeab09f8472f853c62c", async() => {
                        BeginContext(297, 14, true);
                        WriteLiteral("\r\n            ");
                        EndContext();
                        BeginContext(311, 113, false);
                        __tagHelperExecutionContext = __tagHelperScopeManager.Begin("e-datamanager", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "75c11ce5ac044ccbb0d95df7d2ea2b3a", async() => {
                        }
                                                                                    );
                        __Syncfusion_JavaScript_DataSource = CreateTagHelper <global::Syncfusion.JavaScript.DataSource>();
                        __tagHelperExecutionContext.Add(__Syncfusion_JavaScript_DataSource);
                        __Syncfusion_JavaScript_DataSource.URL = (string)__tagHelperAttribute_0.Value;
                        __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_0);
#line 7 "D:\Samples_17.2.0.46\ASPNETCORE\samplebrowser_core_2_0\Views\Menu\Databindingremote.cshtml"
                        __Syncfusion_JavaScript_DataSource.CrossDomain = true;

#line default
#line hidden
                        __tagHelperExecutionContext.AddTagHelperAttribute("cross-domain", __Syncfusion_JavaScript_DataSource.CrossDomain, 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(424, 10, true);
                        WriteLiteral("\r\n        ");
                        EndContext();
                    }
                                                                                );
                    __Syncfusion_JavaScript_Models_MenuFields = CreateTagHelper <global::Syncfusion.JavaScript.Models.MenuFields>();
                    __tagHelperExecutionContext.Add(__Syncfusion_JavaScript_Models_MenuFields);
                    __Syncfusion_JavaScript_Models_MenuFields.Query = (string)__tagHelperAttribute_1.Value;
                    __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_1);
                    __Syncfusion_JavaScript_Models_MenuFields.Id = (string)__tagHelperAttribute_2.Value;
                    __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_2);
                    __Syncfusion_JavaScript_Models_MenuFields.Text = (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(450, 6, true);
                    WriteLiteral("\r\n    ");
                    EndContext();
                }
                                                                            );
                __Syncfusion_JavaScript_Models_MenuProperties = CreateTagHelper <global::Syncfusion.JavaScript.Models.MenuProperties>();
                __tagHelperExecutionContext.Add(__Syncfusion_JavaScript_Models_MenuProperties);
                __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_4);
                await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
                if (!__tagHelperExecutionContext.Output.IsContentModified)
                {
                    await __tagHelperExecutionContext.SetOutputContentAsync();
                }
                Write(__tagHelperExecutionContext.Output);
                __tagHelperExecutionContext = __tagHelperScopeManager.End();
                EndContext();
                BeginContext(466, 4, true);
                WriteLiteral("\r\n\r\n");
                EndContext();
            }
                          );
        }