#pragma warning disable 1998
        public async override global::System.Threading.Tasks.Task ExecuteAsync()
        {
            DefineSection("SampleHeading", async() => {
                BeginContext(23, 61, true);
                WriteLiteral("\r\n    <span class=\"sampleName\">Autocomplete / Autofill</span>");
                EndContext();
            }
                          );
            DefineSection("MetaTags", async() => {
                BeginContext(105, 201, true);
                WriteLiteral("\r\n    <meta name=\"description\" content=\"This example demonstrates how to fill the Syncfusion ASP.NET Core Autocomplete with the first matching item in the suggestion list based on the entered text.\">\r\n");
                EndContext();
            }
                          );
            DefineSection("ControlsSection", async() => {
                BeginContext(334, 70, true);
                WriteLiteral("\r\n    <div class=\"frame\">\r\n        <div class=\"control\">\r\n            ");
                EndContext();
                BeginContext(404, 157, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("ej-autocomplete", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "6f385a5ad688455a8a059bc0476ad456", async() => {
                    BeginContext(541, 2, true);
                    WriteLiteral("  ");
                    EndContext();
                }
                                                                            );
                __Syncfusion_JavaScript_Models_AutocompleteProperties = CreateTagHelper <global::Syncfusion.JavaScript.Models.AutocompleteProperties>();
                __tagHelperExecutionContext.Add(__Syncfusion_JavaScript_Models_AutocompleteProperties);
                __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_0);
                __Syncfusion_JavaScript_Models_AutocompleteProperties.Width = (string)__tagHelperAttribute_1.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_1);
#line 9 "D:\Samples_17.2.0.46\ASPNETCORE\samplebrowser_core_2_0\Views\Autocomplete\Autofill.cshtml"
                __Syncfusion_JavaScript_Models_AutocompleteProperties.EnableAutoFill = true;

#line default
#line hidden
                __tagHelperExecutionContext.AddTagHelperAttribute("enable-auto-fill", __Syncfusion_JavaScript_Models_AutocompleteProperties.EnableAutoFill, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
#line 9 "D:\Samples_17.2.0.46\ASPNETCORE\samplebrowser_core_2_0\Views\Autocomplete\Autofill.cshtml"
                __Syncfusion_JavaScript_Models_AutocompleteProperties.DataSource = ViewBag.datasource;

#line default
#line hidden
                __tagHelperExecutionContext.AddTagHelperAttribute("datasource", __Syncfusion_JavaScript_Models_AutocompleteProperties.DataSource, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
                __Syncfusion_JavaScript_Models_AutocompleteProperties.WatermarkText = (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(561, 34, true);
                WriteLiteral("\r\n\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(23, 56, true);
                WriteLiteral("\r\n    <span class=\"sampleName\">Autocomplete / Rtl</span>");
                EndContext();
            }
                          );
            DefineSection("MetaTags", async() => {
                BeginContext(100, 188, true);
                WriteLiteral("\r\n    <meta name=\"description\" content=\"This example demonstrates how the suggestion list content is displayed from right to left in the Syncfusion ASP.NET Core Autocomplete component.\">\r\n");
                EndContext();
            }
                          );
            DefineSection("ControlsSection", async() => {
                BeginContext(316, 70, true);
                WriteLiteral("\r\n    <div class=\"frame\">\r\n        <div class=\"control\">\r\n            ");
                EndContext();
                BeginContext(386, 143, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("ej-autocomplete", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "358667131bc741878ac5d7e896b09f4a", async() => {
                }
                                                                            );
                __Syncfusion_JavaScript_Models_AutocompleteProperties = CreateTagHelper <global::Syncfusion.JavaScript.Models.AutocompleteProperties>();
                __tagHelperExecutionContext.Add(__Syncfusion_JavaScript_Models_AutocompleteProperties);
                __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_0);
                __Syncfusion_JavaScript_Models_AutocompleteProperties.Width = (string)__tagHelperAttribute_1.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_1);
#line 9 "D:\Samples_17.2.0.46\ASPNETCORE\samplebrowser_core_2_0\Views\Autocomplete\Rtl.cshtml"
                __Syncfusion_JavaScript_Models_AutocompleteProperties.DataSource = ViewBag.datasource;

#line default
#line hidden
                __tagHelperExecutionContext.AddTagHelperAttribute("datasource", __Syncfusion_JavaScript_Models_AutocompleteProperties.DataSource, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
#line 9 "D:\Samples_17.2.0.46\ASPNETCORE\samplebrowser_core_2_0\Views\Autocomplete\Rtl.cshtml"
                __Syncfusion_JavaScript_Models_AutocompleteProperties.EnableRTL = true;

#line default
#line hidden
                __tagHelperExecutionContext.AddTagHelperAttribute("enable-rtl", __Syncfusion_JavaScript_Models_AutocompleteProperties.EnableRTL, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
                __Syncfusion_JavaScript_Models_AutocompleteProperties.WatermarkText = (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(529, 42, true);
                WriteLiteral("\r\n          \r\n        </div>\r\n    </div>\r\n");
                EndContext();
            }
                          );
        }
Beispiel #3
0
        #pragma warning disable 1998
        public async override global::System.Threading.Tasks.Task ExecuteAsync()
        {
            DefineSection("SampleHeading", async() => {
                BeginContext(23, 76, true);
                WriteLiteral("\r\n    <span class=\"sampleName\">Autocomplete / Default Functionalities</span>");
                EndContext();
            }
                          );
            DefineSection("MetaTags", async() => {
                BeginContext(120, 184, true);
                WriteLiteral("\r\n    <meta name=\"description\" content=\"This example demonstrates how to create a Syncfusion ASP.NET Core Autocomplete component and display a suggestion list when text is entered.\">\r\n");
                EndContext();
            }
                          );
            DefineSection("ControlsSection", async() => {
                BeginContext(332, 72, true);
                WriteLiteral("\r\n    <div class=\"frame\">\r\n        <div class=\"control\">\r\n\r\n            ");
                EndContext();
                BeginContext(404, 125, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("ej-autocomplete", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "a29418c6ba324de788dafe650f0eb2a0", async() => {
                }
                                                                            );
                __Syncfusion_JavaScript_Models_AutocompleteProperties = CreateTagHelper <global::Syncfusion.JavaScript.Models.AutocompleteProperties>();
                __tagHelperExecutionContext.Add(__Syncfusion_JavaScript_Models_AutocompleteProperties);
                __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_0);
                __Syncfusion_JavaScript_Models_AutocompleteProperties.Width = (string)__tagHelperAttribute_1.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_1);
                __Syncfusion_JavaScript_Models_AutocompleteProperties.WatermarkText = (string)__tagHelperAttribute_2.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_2);
#line 10 "D:\Samples_17.2.0.46\ASPNETCORE\samplebrowser_core_2_0\Views\Autocomplete\Default.cshtml"
                __Syncfusion_JavaScript_Models_AutocompleteProperties.DataSource = ViewBag.datasource;

#line default
#line hidden
                __tagHelperExecutionContext.AddTagHelperAttribute("datasource", __Syncfusion_JavaScript_Models_AutocompleteProperties.DataSource, 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(529, 33, true);
                WriteLiteral("\r\n\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(23, 59, true);
                WriteLiteral("\r\n    <span class=\"sampleName\">Autocomplete / Events</span>");
                EndContext();
            }
                          );
            DefineSection("MetaTags", async() => {
                BeginContext(103, 184, true);
                WriteLiteral("\r\n    <meta name=\"description\" content=\"This example demonstrates client-side events when particular operations are performed in the Syncfusion ASP.NET Core Autocomplete component.\">\r\n");
                EndContext();
            }
                          );
            DefineSection("ControlsSection", async() => {
                BeginContext(315, 70, true);
                WriteLiteral("\r\n    <div class=\"frame\">\r\n        <div class=\"control\">\r\n            ");
                EndContext();
                BeginContext(385, 257, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("ej-autocomplete", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "2d7d0775207b4b3781c18968310866c1", async() => {
                }
                                                                            );
                __Syncfusion_JavaScript_Models_AutocompleteProperties = CreateTagHelper <global::Syncfusion.JavaScript.Models.AutocompleteProperties>();
                __tagHelperExecutionContext.Add(__Syncfusion_JavaScript_Models_AutocompleteProperties);
                __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_0);
                __Syncfusion_JavaScript_Models_AutocompleteProperties.Width = (string)__tagHelperAttribute_1.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_1);
#line 9 "D:\Samples_17.2.0.46\ASPNETCORE\samplebrowser_core_2_0\Views\Autocomplete\Events.cshtml"
                __Syncfusion_JavaScript_Models_AutocompleteProperties.DataSource = ViewBag.datasource;

#line default
#line hidden
                __tagHelperExecutionContext.AddTagHelperAttribute("datasource", __Syncfusion_JavaScript_Models_AutocompleteProperties.DataSource, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
                __Syncfusion_JavaScript_Models_AutocompleteProperties.Create = (string)__tagHelperAttribute_2.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_2);
                __Syncfusion_JavaScript_Models_AutocompleteProperties.Change = (string)__tagHelperAttribute_3.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_3);
                __Syncfusion_JavaScript_Models_AutocompleteProperties.FocusIn = (string)__tagHelperAttribute_4.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_4);
                __Syncfusion_JavaScript_Models_AutocompleteProperties.FocusOut = (string)__tagHelperAttribute_5.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_5);
                __Syncfusion_JavaScript_Models_AutocompleteProperties.Select = (string)__tagHelperAttribute_6.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_6);
                __Syncfusion_JavaScript_Models_AutocompleteProperties.Open = (string)__tagHelperAttribute_7.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_7);
                __Syncfusion_JavaScript_Models_AutocompleteProperties.Close = (string)__tagHelperAttribute_8.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_8);
                __Syncfusion_JavaScript_Models_AutocompleteProperties.WatermarkText = (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(642, 32, true);
                WriteLiteral("\r\n\r\n        </div>\r\n    </div>\r\n");
                EndContext();
            }
                          );
            DefineSection("EventsDropdown", async() => {
                BeginContext(701, 2, true);
                WriteLiteral("\r\n");
                EndContext();
                BeginContext(711, 8, true);
                WriteLiteral("        ");
                EndContext();
                BeginContext(719, 154, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("ej-drop-down-list", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "68e09f1dc3d0483da4d22b86e5b7d0d4", async() => {
                }
                                                                            );
                __Syncfusion_JavaScript_Models_DropDownListProperties = CreateTagHelper <global::Syncfusion.JavaScript.Models.DropDownListProperties>();
                __tagHelperExecutionContext.Add(__Syncfusion_JavaScript_Models_DropDownListProperties);
                __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_10);
                __Syncfusion_JavaScript_Models_DropDownListProperties.TargetID = (string)__tagHelperAttribute_11.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_11);
#line 16 "D:\Samples_17.2.0.46\ASPNETCORE\samplebrowser_core_2_0\Views\Autocomplete\Events.cshtml"
                __Syncfusion_JavaScript_Models_DropDownListProperties.ShowCheckbox = true;

#line default
#line hidden
                __tagHelperExecutionContext.AddTagHelperAttribute("show-checkbox", __Syncfusion_JavaScript_Models_DropDownListProperties.ShowCheckbox, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
#line 16 "D:\Samples_17.2.0.46\ASPNETCORE\samplebrowser_core_2_0\Views\Autocomplete\Events.cshtml"
                __Syncfusion_JavaScript_Models_DropDownListProperties.CheckAll = true;

#line default
#line hidden
                __tagHelperExecutionContext.AddTagHelperAttribute("check-all", __Syncfusion_JavaScript_Models_DropDownListProperties.CheckAll, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
                __Syncfusion_JavaScript_Models_DropDownListProperties.Change = (string)__tagHelperAttribute_12.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_12);
                await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
                if (!__tagHelperExecutionContext.Output.IsContentModified)
                {
                    await __tagHelperExecutionContext.SetOutputContentAsync();
                }
                Write(__tagHelperExecutionContext.Output);
                __tagHelperExecutionContext = __tagHelperScopeManager.End();
                EndContext();
                BeginContext(873, 2, true);
                WriteLiteral("\r\n");
                EndContext();
                BeginContext(892, 240, true);
                WriteLiteral("    <div id=\"evntname\">\r\n        <ul>\r\n            <li>focusIn</li>\r\n            <li>focusOut</li>\r\n            <li>select</li>\r\n            <li>change</li>\r\n            <li>open</li>\r\n            <li>close</li>\r\n        </ul>\r\n    </div>\r\n");
                EndContext();
            }
                          );
            DefineSection("ScriptSection", async() => {
                BeginContext(1158, 2167, true);
                WriteLiteral(@"
    <script type=""text/javascript"" class=""jsScript"">
        var autocompleteObj;
        function evtpropscheckedevent(args) {
            autocompleteObj = $(""#selectColor"").data(""ejAutocomplete"");
            if (args.isChecked) {
                switch (args.selectedText) {
                    case ""focusIn"": autocompleteObj.option(args.selectedText, ""onFocusIn""); break;
                    case ""focusOut"": autocompleteObj.option(args.selectedText, ""onFocusOut""); break;
                    case ""select"": autocompleteObj.option(args.selectedText, ""onSelect""); break;
                    case ""change"": autocompleteObj.option(args.selectedText, ""onChange""); break;
                    case ""open"": autocompleteObj.option(args.selectedText, ""onOpen""); break;
                    case ""close"": autocompleteObj.option(args.selectedText, ""onClose""); break;
                }
            }
            else autocompleteObj.option(args.selectedText, null);
        }
        // Client side Events
      ");
                WriteLiteral(@"  function onCreate(args) {
            jQuery.addEventLog(""Autocomplete has been <span class='eventTitle'>created</span>."");
        }
        function onFocusIn(args) {
            jQuery.addEventLog(""Autocomplete  is in <span class='eventTitle'>focus</span>. "");
        }
        function onFocusOut(args) {
            jQuery.addEventLog(""Autocomplete  is out of <span class='eventTitle'>focus</span>."");
        }
        function onSelect(args) {
            jQuery.addEventLog(""The value '"" + args.value + ""' has been <span class='eventTitle'>selected</span>."");
        }
        function onChange(args) {
            jQuery.addEventLog(""The value has been <span class='eventTitle'>changed</span> to '"" + args.value + ""'."");
        }
        function onOpen(args) {
            jQuery.addEventLog(""Suggestion List has been <span class='eventTitle'>opened</span>."");
        }
        function onClose(args) {
            jQuery.addEventLog(""Suggestion List has been <span class='eventTitle'>clos");
                WriteLiteral("ed</span>.\");\r\n        }\r\n        function onClear() {\r\n            jQuery.clearEventLog();\r\n        }\r\n    </script>\r\n");
                EndContext();
            }
                          );
        }
        #pragma warning disable 1998
        public async override global::System.Threading.Tasks.Task ExecuteAsync()
        {
            DefineSection("SampleHeading", async() => {
                BeginContext(23, 68, true);
                WriteLiteral("\r\n    <span class=\"sampleName\">Autocomplete / Multiple Values</span>");
                EndContext();
            }
                          );
            DefineSection("MetaTags", async() => {
                BeginContext(112, 178, true);
                WriteLiteral("\r\n    <meta name=\"description\" content=\"This example demonstrates using the Syncfusion ASP.NET Core Autocomplete component to select multiple values from the suggestion list.\">\r\n");
                EndContext();
            }
                          );
            DefineSection("ControlsSection", async() => {
                BeginContext(318, 165, true);
                WriteLiteral("\r\n    <div class=\"frame\">\r\n        <div class=\"row\">\r\n            <div class=\"control\">\r\n                <span class=\"txt\">Using Delimiter</span>\r\n\r\n                ");
                EndContext();
                BeginContext(483, 170, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("ej-autocomplete", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "bdf74c4b4ace49a2892a3868a3ee7acd", async() => {
                }
                                                                            );
                __Syncfusion_JavaScript_Models_AutocompleteProperties = CreateTagHelper <global::Syncfusion.JavaScript.Models.AutocompleteProperties>();
                __tagHelperExecutionContext.Add(__Syncfusion_JavaScript_Models_AutocompleteProperties);
                __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_0);
#line 12 "D:\Samples_17.2.0.46\ASPNETCORE\samplebrowser_core_2_0\Views\Autocomplete\MultipleValues.cshtml"
                __Syncfusion_JavaScript_Models_AutocompleteProperties.DataSource = ViewBag.datasource;

#line default
#line hidden
                __tagHelperExecutionContext.AddTagHelperAttribute("datasource", __Syncfusion_JavaScript_Models_AutocompleteProperties.DataSource, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
                __Syncfusion_JavaScript_Models_AutocompleteProperties.Width = (string)__tagHelperAttribute_1.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_1);
#line 12 "D:\Samples_17.2.0.46\ASPNETCORE\samplebrowser_core_2_0\Views\Autocomplete\MultipleValues.cshtml"
                __Syncfusion_JavaScript_Models_AutocompleteProperties.MultiSelectMode = MultiSelectModeTypes.Delimiter;

#line default
#line hidden
                __tagHelperExecutionContext.AddTagHelperAttribute("multi-select-mode", __Syncfusion_JavaScript_Models_AutocompleteProperties.MultiSelectMode, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
#line 12 "D:\Samples_17.2.0.46\ASPNETCORE\samplebrowser_core_2_0\Views\Autocomplete\MultipleValues.cshtml"
                __Syncfusion_JavaScript_Models_AutocompleteProperties.ShowPopupButton = true;

#line default
#line hidden
                __tagHelperExecutionContext.AddTagHelperAttribute("show-popup-button", __Syncfusion_JavaScript_Models_AutocompleteProperties.ShowPopupButton, 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(653, 150, true);
                WriteLiteral("\r\n                \r\n            </div>\r\n            <div class=\"control\">\r\n                <span class=\"txt\">Using VisualMode</span>\r\n                ");
                EndContext();
                BeginContext(803, 174, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("ej-autocomplete", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "7535be0771a643649fffe0e194262fc9", async() => {
                }
                                                                            );
                __Syncfusion_JavaScript_Models_AutocompleteProperties = CreateTagHelper <global::Syncfusion.JavaScript.Models.AutocompleteProperties>();
                __tagHelperExecutionContext.Add(__Syncfusion_JavaScript_Models_AutocompleteProperties);
                __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_2);
#line 17 "D:\Samples_17.2.0.46\ASPNETCORE\samplebrowser_core_2_0\Views\Autocomplete\MultipleValues.cshtml"
                __Syncfusion_JavaScript_Models_AutocompleteProperties.DataSource = ViewBag.datasource;

#line default
#line hidden
                __tagHelperExecutionContext.AddTagHelperAttribute("datasource", __Syncfusion_JavaScript_Models_AutocompleteProperties.DataSource, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
                __Syncfusion_JavaScript_Models_AutocompleteProperties.Width = (string)__tagHelperAttribute_1.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_1);
#line 17 "D:\Samples_17.2.0.46\ASPNETCORE\samplebrowser_core_2_0\Views\Autocomplete\MultipleValues.cshtml"
                __Syncfusion_JavaScript_Models_AutocompleteProperties.MultiSelectMode = MultiSelectModeTypes.VisualMode;

#line default
#line hidden
                __tagHelperExecutionContext.AddTagHelperAttribute("multi-select-mode", __Syncfusion_JavaScript_Models_AutocompleteProperties.MultiSelectMode, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
#line 17 "D:\Samples_17.2.0.46\ASPNETCORE\samplebrowser_core_2_0\Views\Autocomplete\MultipleValues.cshtml"
                __Syncfusion_JavaScript_Models_AutocompleteProperties.ShowPopupButton = true;

#line default
#line hidden
                __tagHelperExecutionContext.AddTagHelperAttribute("show-popup-button", __Syncfusion_JavaScript_Models_AutocompleteProperties.ShowPopupButton, 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(977, 67, true);
                WriteLiteral("\r\n               \r\n            </div>\r\n        </div>\r\n    </div>\r\n");
                EndContext();
            }
                          );
            DefineSection("StyleSection", async() => {
                BeginContext(1069, 479, true);
                WriteLiteral(@"
    <style type=""text/css"">
        .frame
        {
            height: 150px;
            width: 40%;
        }
        
        .control
        {
            width: 100%;
            display: inline-block;
            float: left;
        }
        
        .control:first-child
        {
            margin-bottom: 15px;
        }
        
        .txt
        {
            display: block;
            margin-bottom: 12px;
        }
    </style>
");
                EndContext();
            }
                          );
        }
        #pragma warning disable 1998
        public async override global::System.Threading.Tasks.Task ExecuteAsync()
        {
#line 1 "D:\Samples_17.2.0.46\ASPNETCORE\samplebrowser_core_2_0\Views\Shared\LayoutLeftAccordion.cshtml"
            var iisvalue = @Url.Content("~/");

#line default
#line hidden
            BeginContext(40, 86, true);
            WriteLiteral("\r\n<div class=\"accordion-panel cols-fixed-sidebar\">\r\n    <div class=\"search\">\r\n        ");
            EndContext();
            BeginContext(126, 335, false);
            __tagHelperExecutionContext = __tagHelperScopeManager.Begin("ej-autocomplete", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "7f3884692b7c41cb88cab187abf61c04", async() => {
            }
                                                                        );
            __Syncfusion_JavaScript_Models_AutocompleteProperties = CreateTagHelper <global::Syncfusion.JavaScript.Models.AutocompleteProperties>();
            __tagHelperExecutionContext.Add(__Syncfusion_JavaScript_Models_AutocompleteProperties);
            __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_0);
            __Syncfusion_JavaScript_Models_AutocompleteProperties.WatermarkText = (string)__tagHelperAttribute_1.Value;
            __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_1);
#line 5 "D:\Samples_17.2.0.46\ASPNETCORE\samplebrowser_core_2_0\Views\Shared\LayoutLeftAccordion.cshtml"
            __Syncfusion_JavaScript_Models_AutocompleteProperties.ShowPopupButton = false;

#line default
#line hidden
            __tagHelperExecutionContext.AddTagHelperAttribute("show-popup-button", __Syncfusion_JavaScript_Models_AutocompleteProperties.ShowPopupButton, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
#line 5 "D:\Samples_17.2.0.46\ASPNETCORE\samplebrowser_core_2_0\Views\Shared\LayoutLeftAccordion.cshtml"
            __Syncfusion_JavaScript_Models_AutocompleteProperties.FilterType = FilterOperatorType.Contains;

#line default
#line hidden
            __tagHelperExecutionContext.AddTagHelperAttribute("filter-type", __Syncfusion_JavaScript_Models_AutocompleteProperties.FilterType, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
            BeginWriteTagHelperAttribute();
            WriteLiteral("<a href= \'");
#line 5 "D:\Samples_17.2.0.46\ASPNETCORE\samplebrowser_core_2_0\Views\Shared\LayoutLeftAccordion.cshtml"
            WriteLiteral(iisvalue);

#line default
#line hidden
            WriteLiteral("${id}\' class=\'anchorclass\'><div class=\'control_name\'>${control}</div> <div class=\'control_samplename\'>${text}</div></a>");
            __tagHelperStringValueBuffer = EndWriteTagHelperAttribute();
            __Syncfusion_JavaScript_Models_AutocompleteProperties.Template = __tagHelperStringValueBuffer;
            __tagHelperExecutionContext.AddTagHelperAttribute("template", __Syncfusion_JavaScript_Models_AutocompleteProperties.Template, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
            __Syncfusion_JavaScript_Models_AutocompleteProperties.Select = (string)__tagHelperAttribute_2.Value;
            __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_2);
            __Syncfusion_JavaScript_Models_AutocompleteProperties.Width = (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(461, 145, true);
            WriteLiteral("        \r\n        <span class=\'search-icon\'></span>\r\n        <span class=\"navigation\"></span>\r\n    </div>\r\n    <div id=\"dashboardheader\">\r\n    <a");
            EndContext();
            BeginWriteAttribute("href", " href=", 606, "", 648, 2);
#line 10 "D:\Samples_17.2.0.46\ASPNETCORE\samplebrowser_core_2_0\Views\Shared\LayoutLeftAccordion.cshtml"
            WriteAttributeValue("", 612, Url.Content("~/"), 612, 18, false);

#line default
#line hidden
            WriteAttributeValue("", 630, "introduction/index", 630, 18, true);
            EndWriteAttribute();
            BeginContext(648, 769, true);
            WriteLiteral(@" >
            <div id=""sbdashboard"" class=""dashboardhead"">
                <span class=""anchor"">SHOWCASE SAMPLES</span>
            </div>
    </a>
        </div>
    <div id=""scrollcontainer"">
        <div>

            <div class=""accordion"" id=""accordion2"">
            </div>

            <script id=""accordionGroupTmpl"" type=""text/x-jsrender"">
			<div class=""SB-groupIt downArrow""><span>{{:#view.data}}</span><span class=""SB-Arrow""></span></div>
			<div class=""SB-group {{RemoveWhiteSpace:#view.data}}""></div>
            </script>
            <script id=""accordionTmpl"" type=""text/x-jsrender"">
                <div class=""anchorclass mainlevel {{ensureURL:id}}_nav"" hashbang=""/{{>controller}}/{{ensureURL:action}}"">
                    <a href=");
            EndContext();
            BeginContext(1418, 17, false);
#line 28 "D:\Samples_17.2.0.46\ASPNETCORE\samplebrowser_core_2_0\Views\Shared\LayoutLeftAccordion.cshtml"
            Write(Url.Content("~/"));

#line default
#line hidden
            EndContext();
            BeginContext(1435, 1741, true);
            WriteLiteral(@"{{ensureURL:controller}}/{{ensureURL:action}}>
                        <div class=""dashboard"">
                            <span class=""anchor"">{{>name}}</span>
                            {{if type}} <span class=""samplestatus {{>type}}""></span>{{/if}}
                        </div>
                    </a>
                </div>
            </script>
            <div class=""accordion samplesCollection"" id=""samplesDiv""></div>
            <script type=""text/x-jsrender"" id=""accordionTmplchild"">
                <div class=""samples {{ensureURL:id}}_nav"">
                    <div id=""{{ensureURL:id}}_nav_back"" class=""firstlevelback dashboardhead"">
                        <span class=""arrowback""></span>
                        <span class=""anchor sbheading"">ALL CONTROLS</span>
                    </div>
                    <div id=""{{ensureURL:id}}_nav_header"" class=""dashboardhead"">
                        <span class=""anchor sbheading"">{{:name}}</span>
                    </div>
                 ");
            WriteLiteral(@"   {{for samples ~pId=id}}
                    {{if (childcount>0)}}
                    <div class=""subsample-1"">
                        <div class=""SB-groupIt downArrow"">
                            <span>{{Upperstring:name}}</span>
                            <span class=""SB-Arrow""></span>
                        </div>
                        <div id=""{{>pId}}"" width=""200px"">
                            {{for samples ~rId=~pId ~sId=name}}
                            <div hashbang=""/{{>~sId}}/{{>action}}"" class=""secondlevelload SB-group SB-hashcollection {{ensureURL:id}}_nav"" childcount=""{{>childcount}}"" controller=""{{>controller}}"" action=""{{>action}}"">
                                <a href=");
            EndContext();
            BeginContext(3177, 17, false);
#line 56 "D:\Samples_17.2.0.46\ASPNETCORE\samplebrowser_core_2_0\Views\Shared\LayoutLeftAccordion.cshtml"
            Write(Url.Content("~/"));

#line default
#line hidden
            EndContext();
            BeginContext(3194, 729, true);
            WriteLiteral(@"{{ensureURL:controller}}/{{ensureURL:action}}>
                                    <div class=""dashboard"">
                                        <span class=""anchor"">{{>name}}</span>
                                        {{if type}} <span class=""samplestatus {{>type}}""></span>{{/if}}
                                    </div>
                                </a>
                            </div>
                            {{/for}}
                        </div>
                    </div>
                    {{else}}
                    <div class=""firstlevelload SB-hashcollection {{ensureURL:id}}"" childcount=""{{>childcount}}"" controller=""{{>~pId}}"" action=""{{>action}}"">
                        <a href=");
            EndContext();
            BeginContext(3924, 17, false);
#line 68 "D:\Samples_17.2.0.46\ASPNETCORE\samplebrowser_core_2_0\Views\Shared\LayoutLeftAccordion.cshtml"
            Write(Url.Content("~/"));

#line default
#line hidden
            EndContext();
            BeginContext(3941, 601, true);
            WriteLiteral(@"{{ensureURL:controller}}/{{ensureURL:action}}>
                            <div class=""dashboard"">
                                <span class=""anchor"">{{>name}}</span>
                                {{if type}} <span class=""samplestatus {{>type}}""></span>{{/if}}
                            </div>
                        </a>
                    </div>
                    {{/if}}
                                    {{/for}}
                </div>
            </script>
            <div id=""subsamplesDiv"" style=""display: none"">
            </div>
        </div>
    </div>
</div>
");
            EndContext();
        }
        #pragma warning disable 1998
        public async override global::System.Threading.Tasks.Task ExecuteAsync()
        {
            DefineSection("SampleHeading", async() => {
                BeginContext(23, 73, true);
                WriteLiteral("\r\n    <span class=\"sampleName\">Autocomplete / Keyboard Interaction</span>");
                EndContext();
            }
                          );
            DefineSection("MetaTags", async() => {
                BeginContext(117, 177, true);
                WriteLiteral("\r\n    <meta name=\"description\" content=\"This example demonstrates how to access the Syncfusion ASP.NET Core Autocomplete control functionalities using keyboard interactions.\">\r\n");
                EndContext();
            }
                          );
            DefineSection("ControlsSection", async() => {
                BeginContext(322, 70, true);
                WriteLiteral("\r\n    <div class=\"frame\">\r\n        <div class=\"control\">\r\n            ");
                EndContext();
                BeginContext(392, 177, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("ej-autocomplete", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "98a4bb9c1ac74c2dabeae182a2ba0417", async() => {
                }
                                                                            );
                __Syncfusion_JavaScript_Models_AutocompleteProperties = CreateTagHelper <global::Syncfusion.JavaScript.Models.AutocompleteProperties>();
                __tagHelperExecutionContext.Add(__Syncfusion_JavaScript_Models_AutocompleteProperties);
                __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_0);
#line 9 "D:\Samples_17.2.0.46\ASPNETCORE\samplebrowser_core_2_0\Views\Autocomplete\Keyboard.cshtml"
                __Syncfusion_JavaScript_Models_AutocompleteProperties.DataSource = ViewBag.datasource;

#line default
#line hidden
                __tagHelperExecutionContext.AddTagHelperAttribute("datasource", __Syncfusion_JavaScript_Models_AutocompleteProperties.DataSource, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
                __Syncfusion_JavaScript_Models_AutocompleteProperties.Width = (string)__tagHelperAttribute_1.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_1);
                __Syncfusion_JavaScript_Models_AutocompleteProperties.WatermarkText = (string)__tagHelperAttribute_2.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_2);
#line 9 "D:\Samples_17.2.0.46\ASPNETCORE\samplebrowser_core_2_0\Views\Autocomplete\Keyboard.cshtml"
                __Syncfusion_JavaScript_Models_AutocompleteProperties.MultiSelectMode = MultiSelectModeTypes.Delimiter;

#line default
#line hidden
                __tagHelperExecutionContext.AddTagHelperAttribute("multi-select-mode", __Syncfusion_JavaScript_Models_AutocompleteProperties.MultiSelectMode, 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(569, 32, true);
                WriteLiteral("\r\n\r\n        </div>\r\n    </div>\r\n");
                EndContext();
            }
                          );
            DefineSection("PropertiesSection", async() => {
                BeginContext(631, 917, true);
                WriteLiteral(@"
    <div class=""row"">
        <div class=""col-md-3"">
            Alt + j
        </div>
        <div class=""col-md-3"">
            Focuses the control
        </div>
    </div>
    <div class=""row"">
        <div class=""col-md-3"">
            Up
        </div>
        <div class=""col-md-3"">
            Moves to previous item
        </div>
    </div>
    <div class=""row"">
        <div class=""col-md-3"">
            Down
        </div>
        <div class=""col-md-3"">
            Moves to next item
        </div>
    </div>
    <div class=""row"">
        <div class=""col-md-3"">
            Enter
        </div>
        <div class=""col-md-3"">
            Selects the focused item
        </div>
    </div>
    <div class=""row"">
        <div class=""col-md-3"">
            Esc
        </div>
        <div class=""col-md-3"">
            Closes the popup
        </div>
    </div>
");
                EndContext();
            }
                          );
            DefineSection("ScriptSection", async() => {
                BeginContext(1574, 370, true);
                WriteLiteral(@"
    <script type=""text/javascript"" class=""jsScript"">
        $(function () {
            $(""#sampleProperties"").ejPropertiesPanel();
            $(document).on(""keydown"", function (e) {
                if (e.altKey && e.keyCode === 74) { // j- key code.
                    $(""#keyboard"").focus();
                }
            });
        });
    </script>
");
                EndContext();
            }
                          );
        }
        #pragma warning disable 1998
        public async override global::System.Threading.Tasks.Task ExecuteAsync()
        {
            DefineSection("SampleHeading", async() => {
                BeginContext(23, 61, true);
                WriteLiteral("\r\n    <span class=\"sampleName\">Autocomplete / Grouping</span>");
                EndContext();
            }
                          );
            DefineSection("MetaTags", async() => {
                BeginContext(105, 198, true);
                WriteLiteral("\r\n    <meta name=\"description\" content=\"This example demonstrates grouping items in the Syncfusion ASP.NET Core Autocomplete and providing a header for each set of groups in the suggestion list.\">\r\n");
                EndContext();
            }
                          );
            DefineSection("ControlsSection", async() => {
                BeginContext(331, 72, true);
                WriteLiteral("\r\n    <div class=\"frame\">\r\n        <div class=\"control\">\r\n\r\n            ");
                EndContext();
                BeginContext(403, 295, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("ej-autocomplete", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "7c9a932cef694022868a4bbb4c56be90", async() => {
                    BeginContext(603, 18, true);
                    WriteLiteral("\r\n                ");
                    EndContext();
                    BeginContext(621, 45, false);
                    __tagHelperExecutionContext = __tagHelperScopeManager.Begin("e-autocomplete-fields", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "06ed86b77a584c51b525304cdd22b1b9", async() => {
                    }
                                                                                );
                    __Syncfusion_JavaScript_AutocompleteFields = CreateTagHelper <global::Syncfusion.JavaScript.AutocompleteFields>();
                    __tagHelperExecutionContext.Add(__Syncfusion_JavaScript_AutocompleteFields);
                    __Syncfusion_JavaScript_AutocompleteFields.GroupBy = (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(666, 14, true);
                    WriteLiteral("\r\n            ");
                    EndContext();
                }
                                                                            );
                __Syncfusion_JavaScript_Models_AutocompleteProperties = CreateTagHelper <global::Syncfusion.JavaScript.Models.AutocompleteProperties>();
                __tagHelperExecutionContext.Add(__Syncfusion_JavaScript_Models_AutocompleteProperties);
                __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_1);
#line 10 "D:\Samples_17.2.0.46\ASPNETCORE\samplebrowser_core_2_0\Views\Autocomplete\Grouping.cshtml"
                __Syncfusion_JavaScript_Models_AutocompleteProperties.DataSource = ViewBag.datasource;

#line default
#line hidden
                __tagHelperExecutionContext.AddTagHelperAttribute("datasource", __Syncfusion_JavaScript_Models_AutocompleteProperties.DataSource, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
#line 10 "D:\Samples_17.2.0.46\ASPNETCORE\samplebrowser_core_2_0\Views\Autocomplete\Grouping.cshtml"
                __Syncfusion_JavaScript_Models_AutocompleteProperties.ItemsCount = 7;

#line default
#line hidden
                __tagHelperExecutionContext.AddTagHelperAttribute("items-count", __Syncfusion_JavaScript_Models_AutocompleteProperties.ItemsCount, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
                __Syncfusion_JavaScript_Models_AutocompleteProperties.Width = (string)__tagHelperAttribute_2.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_2);
#line 10 "D:\Samples_17.2.0.46\ASPNETCORE\samplebrowser_core_2_0\Views\Autocomplete\Grouping.cshtml"
                __Syncfusion_JavaScript_Models_AutocompleteProperties.FilterType = FilterOperatorType.Contains;

#line default
#line hidden
                __tagHelperExecutionContext.AddTagHelperAttribute("filter-type", __Syncfusion_JavaScript_Models_AutocompleteProperties.FilterType, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
#line 10 "D:\Samples_17.2.0.46\ASPNETCORE\samplebrowser_core_2_0\Views\Autocomplete\Grouping.cshtml"
                __Syncfusion_JavaScript_Models_AutocompleteProperties.HighlightSearch = true;

#line default
#line hidden
                __tagHelperExecutionContext.AddTagHelperAttribute("highlight-search", __Syncfusion_JavaScript_Models_AutocompleteProperties.HighlightSearch, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
                __Syncfusion_JavaScript_Models_AutocompleteProperties.WatermarkText = (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(698, 43, true);
                WriteLiteral("\r\n           \r\n        </div>\r\n    </div>\r\n");
                EndContext();
            }
                          );
        }
Beispiel #9
0
        #pragma warning disable 1998
        public async override global::System.Threading.Tasks.Task ExecuteAsync()
        {
            DefineSection("SampleHeading", async() => {
                BeginContext(23, 61, true);
                WriteLiteral("\r\n    <span class=\"sampleName\">Autocomplete / Template</span>");
                EndContext();
            }
                          );
            DefineSection("MetaTags", async() => {
                BeginContext(105, 181, true);
                WriteLiteral("\r\n    <meta name=\"description\" content=\"This example demonstrates the template support in the Syncfusion ASP.NET Core Autocomplete component for customizing the suggestion list.\">\r\n");
                EndContext();
            }
                          );
            DefineSection("ControlsSection", async() => {
                BeginContext(314, 70, true);
                WriteLiteral("\r\n    <div class=\"frame\">\r\n        <div class=\"control\">\r\n            ");
                EndContext();
                BeginContext(384, 208, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("ej-autocomplete", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "c7b64120ae4444d7b9759540b820ef94", async() => {
                }
                                                                            );
                __Syncfusion_JavaScript_Models_AutocompleteProperties = CreateTagHelper <global::Syncfusion.JavaScript.Models.AutocompleteProperties>();
                __tagHelperExecutionContext.Add(__Syncfusion_JavaScript_Models_AutocompleteProperties);
                __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_0);
                __Syncfusion_JavaScript_Models_AutocompleteProperties.Width = (string)__tagHelperAttribute_1.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_1);
#line 9 "D:\Samples_17.2.0.46\ASPNETCORE\samplebrowser_core_2_0\Views\Autocomplete\Template.cshtml"
                __Syncfusion_JavaScript_Models_AutocompleteProperties.DataSource = ViewBag.datasource;

#line default
#line hidden
                __tagHelperExecutionContext.AddTagHelperAttribute("datasource", __Syncfusion_JavaScript_Models_AutocompleteProperties.DataSource, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
                __Syncfusion_JavaScript_Models_AutocompleteProperties.Template = (string)__tagHelperAttribute_2.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_2);
                __Syncfusion_JavaScript_Models_AutocompleteProperties.WatermarkText = (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(592, 41, true);
                WriteLiteral("\r\n         \r\n        </div>\r\n    </div>\r\n");
                EndContext();
            }
                          );
            DefineSection("StyleSection", async() => {
                BeginContext(658, 11, true);
                WriteLiteral("\r\n    <link");
                EndContext();
                BeginWriteAttribute("href", " href=\"", 669, "\"", 721, 1);
#line 15 "D:\Samples_17.2.0.46\ASPNETCORE\samplebrowser_core_2_0\Views\Autocomplete\Template.cshtml"
                WriteAttributeValue("", 676, Url.Content("~/css/Samples/AtcTemplate.css"), 676, 45, false);

#line default
#line hidden
                EndWriteAttribute();
                BeginContext(722, 448, true);
                WriteLiteral(@" rel=""stylesheet"" />
    <style>
        .flag
        {
            background: url(""../images/autocomplete/flags.png"") no-repeat;
            float: left;
            height: 15px;
            margin-right: 10px;
            margin-top: 3px;
            width: 25px;
        }
        
        .txt
        {
            display: table-cell;
            height: 20px;
            vertical-align: middle;
        }
    </style>
");
                EndContext();
            }
                          );
        }
        #pragma warning disable 1998
        public async override global::System.Threading.Tasks.Task ExecuteAsync()
        {
            DefineSection("SampleHeading", async() => {
                BeginContext(23, 77, true);
                WriteLiteral("\r\n    <span class=\"sampleName\">Autocomplete / Data Bining - Local Data</span>");
                EndContext();
            }
                          );
            DefineSection("MetaTags", async() => {
                BeginContext(121, 147, true);
                WriteLiteral("\r\n    <meta name=\"description\" content=\"This example demonstrates how to bind local data to the Syncfusion ASP.NET Core Autocomplete component.\">\r\n");
                EndContext();
            }
                          );
            DefineSection("ControlsSection", async() => {
                BeginContext(296, 70, true);
                WriteLiteral("\r\n    <div class=\"frame\">\r\n        <div class=\"control\">\r\n            ");
                EndContext();
                BeginContext(366, 217, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("ej-autocomplete", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "a39920c83c50401ea0a9e4d97a52dc5e", async() => {
                    BeginContext(477, 18, true);
                    WriteLiteral("\r\n                ");
                    EndContext();
                    BeginContext(495, 56, false);
                    __tagHelperExecutionContext = __tagHelperScopeManager.Begin("e-autocomplete-fields", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "1f53b4e7c2824a8b879da6f6c3da7ac5", async() => {
                    }
                                                                                );
                    __Syncfusion_JavaScript_AutocompleteFields = CreateTagHelper <global::Syncfusion.JavaScript.AutocompleteFields>();
                    __tagHelperExecutionContext.Add(__Syncfusion_JavaScript_AutocompleteFields);
                    __Syncfusion_JavaScript_AutocompleteFields.Text = (string)__tagHelperAttribute_0.Value;
                    __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_0);
                    __Syncfusion_JavaScript_AutocompleteFields.Key = (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(551, 14, true);
                    WriteLiteral("\r\n            ");
                    EndContext();
                }
                                                                            );
                __Syncfusion_JavaScript_Models_AutocompleteProperties = CreateTagHelper <global::Syncfusion.JavaScript.Models.AutocompleteProperties>();
                __tagHelperExecutionContext.Add(__Syncfusion_JavaScript_Models_AutocompleteProperties);
                __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_2);
                __Syncfusion_JavaScript_Models_AutocompleteProperties.Width = (string)__tagHelperAttribute_3.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_3);
#line 9 "D:\Samples_17.2.0.46\ASPNETCORE\samplebrowser_core_2_0\Views\Autocomplete\DatabindingJson.cshtml"
                __Syncfusion_JavaScript_Models_AutocompleteProperties.DataSource = ViewBag.datasource;

#line default
#line hidden
                __tagHelperExecutionContext.AddTagHelperAttribute("datasource", __Syncfusion_JavaScript_Models_AutocompleteProperties.DataSource, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
                __Syncfusion_JavaScript_Models_AutocompleteProperties.WatermarkText = (string)__tagHelperAttribute_4.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_4);
                await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
                if (!__tagHelperExecutionContext.Output.IsContentModified)
                {
                    await __tagHelperExecutionContext.SetOutputContentAsync();
                }
                Write(__tagHelperExecutionContext.Output);
                __tagHelperExecutionContext = __tagHelperScopeManager.End();
                EndContext();
                BeginContext(583, 32, true);
                WriteLiteral("\r\n\r\n        </div>\r\n    </div>\r\n");
                EndContext();
            }
                          );
        }
Beispiel #11
0
        #pragma warning disable 1998
        public async override global::System.Threading.Tasks.Task ExecuteAsync()
        {
            DefineSection("SampleHeading", async() => {
                BeginContext(23, 60, true);
                WriteLiteral("\r\n    <span class=\"sampleName\">Autocomplete / Methods</span>");
                EndContext();
            }
                          );
            DefineSection("MetaTags", async() => {
                BeginContext(104, 166, true);
                WriteLiteral("\r\n    <meta name=\"description\" content=\"This example demonstrates how to disable and get the selected value in the Syncfusion ASP.NET Core Autocomplete component.\">\r\n");
                EndContext();
            }
                          );
            DefineSection("ControlsSection", async() => {
                BeginContext(298, 83, true);
                WriteLiteral("\r\n    <div class=\"frame\">\r\n        <div class=\"control\">\r\n           \r\n            ");
                EndContext();
                BeginContext(381, 200, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("ej-autocomplete", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "65be4cc7e8c242f4ba7b313b831832f8", async() => {
                    BeginContext(496, 18, true);
                    WriteLiteral("\r\n                ");
                    EndContext();
                    BeginContext(514, 35, false);
                    __tagHelperExecutionContext = __tagHelperScopeManager.Begin("e-autocomplete-fields", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "a6964105f7c44baea33145c6184a6013", async() => {
                    }
                                                                                );
                    __Syncfusion_JavaScript_AutocompleteFields = CreateTagHelper <global::Syncfusion.JavaScript.AutocompleteFields>();
                    __tagHelperExecutionContext.Add(__Syncfusion_JavaScript_AutocompleteFields);
                    __Syncfusion_JavaScript_AutocompleteFields.Key = (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(549, 14, true);
                    WriteLiteral("\r\n            ");
                    EndContext();
                }
                                                                            );
                __Syncfusion_JavaScript_Models_AutocompleteProperties = CreateTagHelper <global::Syncfusion.JavaScript.Models.AutocompleteProperties>();
                __tagHelperExecutionContext.Add(__Syncfusion_JavaScript_Models_AutocompleteProperties);
                __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_1);
#line 10 "D:\Samples_17.2.0.46\ASPNETCORE\samplebrowser_core_2_0\Views\Autocomplete\Methods.cshtml"
                __Syncfusion_JavaScript_Models_AutocompleteProperties.DataSource = ViewBag.datasource;

#line default
#line hidden
                __tagHelperExecutionContext.AddTagHelperAttribute("datasource", __Syncfusion_JavaScript_Models_AutocompleteProperties.DataSource, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
                __Syncfusion_JavaScript_Models_AutocompleteProperties.Width = (string)__tagHelperAttribute_2.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_2);
                __Syncfusion_JavaScript_Models_AutocompleteProperties.WatermarkText = (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(581, 57, true);
                WriteLiteral("\r\n            \r\n           \r\n        </div>\r\n    </div>\r\n");
                EndContext();
            }
                          );
            DefineSection("PropertiesSection", async() => {
                BeginContext(668, 70, true);
                WriteLiteral("\r\n    <div class=\"row\">\r\n        <div class=\"col-md-12\">\r\n            ");
                EndContext();
                BeginContext(738, 109, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("ej-toggle-button", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "f9b561c704754f15b81a9e6c39016641", async() => {
                }
                                                                            );
                __Syncfusion_JavaScript_Models_ToggleButtonProperties = CreateTagHelper <global::Syncfusion.JavaScript.Models.ToggleButtonProperties>();
                __tagHelperExecutionContext.Add(__Syncfusion_JavaScript_Models_ToggleButtonProperties);
                __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_4);
                __Syncfusion_JavaScript_Models_ToggleButtonProperties.Width = (string)__tagHelperAttribute_5.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_5);
                __Syncfusion_JavaScript_Models_ToggleButtonProperties.DefaultText = (string)__tagHelperAttribute_6.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_6);
                __Syncfusion_JavaScript_Models_ToggleButtonProperties.ActiveText = (string)__tagHelperAttribute_7.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_7);
                __Syncfusion_JavaScript_Models_ToggleButtonProperties.Click = (string)__tagHelperAttribute_8.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_8);
                await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
                if (!__tagHelperExecutionContext.Output.IsContentModified)
                {
                    await __tagHelperExecutionContext.SetOutputContentAsync();
                }
                Write(__tagHelperExecutionContext.Output);
                __tagHelperExecutionContext = __tagHelperScopeManager.End();
                EndContext();
                BeginContext(847, 65, true);
                WriteLiteral("\r\n          </div>\r\n        <div class=\"col-md-12\">\r\n            ");
                EndContext();
                BeginContext(912, 74, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("ej-button", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "6d11de66eda741628f622c9f3d0de8c1", async() => {
                }
                                                                            );
                __Syncfusion_JavaScript_Models_ButtonProperties = CreateTagHelper <global::Syncfusion.JavaScript.Models.ButtonProperties>();
                __tagHelperExecutionContext.Add(__Syncfusion_JavaScript_Models_ButtonProperties);
                __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_9);
                __Syncfusion_JavaScript_Models_ButtonProperties.Width = (string)__tagHelperAttribute_5.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_5);
                __Syncfusion_JavaScript_Models_ButtonProperties.Text = (string)__tagHelperAttribute_10.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_10);
                __Syncfusion_JavaScript_Models_ButtonProperties.Click = (string)__tagHelperAttribute_11.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_11);
                await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
                if (!__tagHelperExecutionContext.Output.IsContentModified)
                {
                    await __tagHelperExecutionContext.SetOutputContentAsync();
                }
                Write(__tagHelperExecutionContext.Output);
                __tagHelperExecutionContext = __tagHelperScopeManager.End();
                EndContext();
                BeginContext(986, 30, true);
                WriteLiteral("\r\n        </div>\r\n    </div>\r\n");
                EndContext();
            }
                          );
            DefineSection("ScriptSection", async() => {
                BeginContext(1042, 595, true);
                WriteLiteral(@"
    <script type=""text/javascript"" class=""jsScript"">
        var autocomplete;
        $(function () {
            $(""#sampleProperties"").ejPropertiesPanel();
            autocomplete = $('#selectCountry').data(""ejAutocomplete"");
        });
        function changeState(args) {
            autocomplete = $('#selectCountry').data(""ejAutocomplete"");
            if (args.isChecked) autocomplete.disable();
            else autocomplete.enable();
        }
        function btnClick() {
            alert(""Current value is : "" + autocomplete.getValue());
        }
    </script>
");
                EndContext();
            }
                          );
        }
        #pragma warning disable 1998
        public async override global::System.Threading.Tasks.Task ExecuteAsync()
        {
            DefineSection("SampleHeading", async() => {
                BeginContext(23, 79, true);
                WriteLiteral("\r\n    <span class=\"sampleName\">Autocomplete / Data Binding - Remote data</span>");
                EndContext();
            }
                          );
            DefineSection("MetaTags", async() => {
                BeginContext(123, 148, true);
                WriteLiteral("\r\n    <meta name=\"description\" content=\"This example demonstrates how to bind remote data in the Syncfusion ASP.NET Core Autocomplete component.\">\r\n");
                EndContext();
            }
                          );
            DefineSection("ControlsSection", async() => {
                BeginContext(299, 72, true);
                WriteLiteral("\r\n    <div class=\"frame\">\r\n        <div class=\"control\">\r\n\r\n            ");
                EndContext();
                BeginContext(371, 410, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("ej-autocomplete", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "7ba620801ef34e2d8ead3bc0ca09e1b6", async() => {
                    BeginContext(529, 18, true);
                    WriteLiteral("\r\n                ");
                    EndContext();
                    BeginContext(547, 123, false);
                    __tagHelperExecutionContext = __tagHelperScopeManager.Begin("e-datamanager", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "771142cb9e51445797b4bdc25a1c6137", 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 11 "D:\Samples_17.2.0.46\ASPNETCORE\samplebrowser_core_2_0\Views\Autocomplete\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);
#line 11 "D:\Samples_17.2.0.46\ASPNETCORE\samplebrowser_core_2_0\Views\Autocomplete\Databindingremote.cshtml"
                    __Syncfusion_JavaScript_DataSource.Offline = false;

#line default
#line hidden
                    __tagHelperExecutionContext.AddTagHelperAttribute("offline", __Syncfusion_JavaScript_DataSource.Offline, 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(670, 18, true);
                    WriteLiteral("\r\n                ");
                    EndContext();
                    BeginContext(688, 61, false);
                    __tagHelperExecutionContext = __tagHelperScopeManager.Begin("e-autocomplete-fields", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "96680a1c5f9b4553895b0a5e95f9d6bf", async() => {
                    }
                                                                                );
                    __Syncfusion_JavaScript_AutocompleteFields = CreateTagHelper <global::Syncfusion.JavaScript.AutocompleteFields>();
                    __tagHelperExecutionContext.Add(__Syncfusion_JavaScript_AutocompleteFields);
                    __Syncfusion_JavaScript_AutocompleteFields.Text = (string)__tagHelperAttribute_1.Value;
                    __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_1);
                    __Syncfusion_JavaScript_AutocompleteFields.Key = (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(749, 14, true);
                    WriteLiteral("\r\n            ");
                    EndContext();
                }
                                                                            );
                __Syncfusion_JavaScript_Models_AutocompleteProperties = CreateTagHelper <global::Syncfusion.JavaScript.Models.AutocompleteProperties>();
                __tagHelperExecutionContext.Add(__Syncfusion_JavaScript_Models_AutocompleteProperties);
                __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_3);
                __Syncfusion_JavaScript_Models_AutocompleteProperties.Query = (string)__tagHelperAttribute_4.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_4);
                __Syncfusion_JavaScript_Models_AutocompleteProperties.Width = (string)__tagHelperAttribute_5.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_5);
                __Syncfusion_JavaScript_Models_AutocompleteProperties.WatermarkText = (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(781, 32, true);
                WriteLiteral("\r\n\r\n        </div>\r\n    </div>\r\n");
                EndContext();
            }
                          );
        }