Exemple #1
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\">ListBox / Drag and Drop</span>");
                EndContext();
            }
                          );
            DefineSection("MetaTags", async() => {
                BeginContext(105, 189, true);
                WriteLiteral("\r\n    <meta name=\"description\" content=\"This example demonstrates how to drag list items from one ListBox component and drop them into another Syncfusion ASP.NET Core ListBox component.\">\r\n");
                EndContext();
            }
                          );
            DefineSection("ControlsSection", async() => {
                BeginContext(322, 169, true);
                WriteLiteral("\r\n    <div class=\"frame\">\r\n        <div class=\"row\">\r\n            <div class=\"ctrllabel\">Drag and drop skills</div>\r\n            <div class=\"contents\">\r\n                ");
                EndContext();
                BeginContext(491, 174, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("ej-list-box", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "498f163e1dd4403c86ce2e081725fed3", async() => {
                    BeginContext(578, 22, true);
                    WriteLiteral("\r\n                    ");
                    EndContext();
                    BeginContext(600, 33, false);
                    __tagHelperExecutionContext = __tagHelperScopeManager.Begin("e-list-box-fields", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "6d021f1730e9426aabbd8aedf41496bb", async() => {
                    }
                                                                                );
                    __Syncfusion_JavaScript_Models_ListBoxFields = CreateTagHelper <global::Syncfusion.JavaScript.Models.ListBoxFields>();
                    __tagHelperExecutionContext.Add(__Syncfusion_JavaScript_Models_ListBoxFields);
                    __Syncfusion_JavaScript_Models_ListBoxFields.Text = (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(633, 18, true);
                    WriteLiteral("\r\n                ");
                    EndContext();
                }
                                                                            );
                __Syncfusion_JavaScript_Models_ListBoxProperties = CreateTagHelper <global::Syncfusion.JavaScript.Models.ListBoxProperties>();
                __tagHelperExecutionContext.Add(__Syncfusion_JavaScript_Models_ListBoxProperties);
                __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_1);
#line 11 "D:\Samples_17.2.0.46\ASPNETCORE\samplebrowser_core_2_0\Views\ListBox\DragAndDrop.cshtml"
                __Syncfusion_JavaScript_Models_ListBoxProperties.AllowDragAndDrop = true;

#line default
#line hidden
                __tagHelperExecutionContext.AddTagHelperAttribute("allow-drag-and-drop", __Syncfusion_JavaScript_Models_ListBoxProperties.AllowDragAndDrop, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
#line 11 "D:\Samples_17.2.0.46\ASPNETCORE\samplebrowser_core_2_0\Views\ListBox\DragAndDrop.cshtml"
                __Syncfusion_JavaScript_Models_ListBoxProperties.DataSource = ViewBag.datasourcelang;

#line default
#line hidden
                __tagHelperExecutionContext.AddTagHelperAttribute("datasource", __Syncfusion_JavaScript_Models_ListBoxProperties.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(665, 106, true);
                WriteLiteral("                \r\n            </div>\r\n            <div class=\"contents col-sm-offset-2\">\r\n                ");
                EndContext();
                BeginContext(771, 65, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("ej-list-box", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "13880550f6cd4253a0ca0a76298467c0", async() => {
                }
                                                                            );
                __Syncfusion_JavaScript_Models_ListBoxProperties = CreateTagHelper <global::Syncfusion.JavaScript.Models.ListBoxProperties>();
                __tagHelperExecutionContext.Add(__Syncfusion_JavaScript_Models_ListBoxProperties);
                __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_2);
#line 16 "D:\Samples_17.2.0.46\ASPNETCORE\samplebrowser_core_2_0\Views\ListBox\DragAndDrop.cshtml"
                __Syncfusion_JavaScript_Models_ListBoxProperties.AllowDragAndDrop = true;

#line default
#line hidden
                __tagHelperExecutionContext.AddTagHelperAttribute("allow-drag-and-drop", __Syncfusion_JavaScript_Models_ListBoxProperties.AllowDragAndDrop, 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(836, 66, true);
                WriteLiteral("                \r\n            </div>\r\n        </div>\r\n    </div>\r\n");
                EndContext();
            }
                          );
            DefineSection("StyleSection", async() => {
                BeginContext(927, 373, true);
                WriteLiteral(@"
    <style class=""cssStyles"">
        .ctrllabel {
            padding: 0px 0px 12px 36px;
            font-weight: 600;
        }

        .contents {
            padding-left: 36px;
            position: relative;
            margin: 0 auto;
            float: left;
        }
        
        .frame {
            width: 500px;
        }
    </style>
");
                EndContext();
            }
                          );
        }
Exemple #2
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\">ListBox / Multi-Select</span>");
                EndContext();
            }
                          );
            DefineSection("MetaTags", async() => {
                BeginContext(104, 162, true);
                WriteLiteral("\r\n    <meta name=\"description\" content=\"This example demonstrates how to select more than one item at a time in the Syncfusion ASP.NET Core ListBox component.\">\r\n");
                EndContext();
            }
                          );
            DefineSection("ControlsSection", async() => {
                BeginContext(294, 124, true);
                WriteLiteral("\r\n    <div class=\"control frame\">\r\n        <div class=\"ctrllabel\">\r\n            Select your skills\r\n        </div>\r\n        ");
                EndContext();
                BeginContext(418, 173, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("ej-list-box", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "ce1cdd71332b4cb08cfadc3923c8ae80", async() => {
                    BeginContext(519, 14, true);
                    WriteLiteral("\r\n            ");
                    EndContext();
                    BeginContext(533, 34, false);
                    __tagHelperExecutionContext = __tagHelperScopeManager.Begin("e-list-box-fields", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "3bcbfd2cae8348ec8e846b5d404fa780", async() => {
                    }
                                                                                );
                    __Syncfusion_JavaScript_Models_ListBoxFields = CreateTagHelper <global::Syncfusion.JavaScript.Models.ListBoxFields>();
                    __tagHelperExecutionContext.Add(__Syncfusion_JavaScript_Models_ListBoxFields);
                    __Syncfusion_JavaScript_Models_ListBoxFields.Text = (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(567, 10, true);
                    WriteLiteral("\r\n        ");
                    EndContext();
                }
                                                                            );
                __Syncfusion_JavaScript_Models_ListBoxProperties = CreateTagHelper <global::Syncfusion.JavaScript.Models.ListBoxProperties>();
                __tagHelperExecutionContext.Add(__Syncfusion_JavaScript_Models_ListBoxProperties);
                __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_1);
#line 11 "D:\Samples_17.2.0.46\ASPNETCORE\samplebrowser_core_2_0\Views\ListBox\MultiSelect.cshtml"
                __Syncfusion_JavaScript_Models_ListBoxProperties.DataSource = ViewBag.datasource;

#line default
#line hidden
                __tagHelperExecutionContext.AddTagHelperAttribute("datasource", __Syncfusion_JavaScript_Models_ListBoxProperties.DataSource, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
#line 11 "D:\Samples_17.2.0.46\ASPNETCORE\samplebrowser_core_2_0\Views\ListBox\MultiSelect.cshtml"
                __Syncfusion_JavaScript_Models_ListBoxProperties.AllowMultiSelection = true;

#line default
#line hidden
                __tagHelperExecutionContext.AddTagHelperAttribute("allow-multi-selection", __Syncfusion_JavaScript_Models_ListBoxProperties.AllowMultiSelection, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
                __Syncfusion_JavaScript_Models_ListBoxProperties.Width = (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(591, 22, true);
                WriteLiteral("        \r\n    </div>\r\n");
                EndContext();
            }
                          );
            DefineSection("ScriptSection", async() => {
                BeginContext(639, 170, true);
                WriteLiteral("\r\n    <script type=\"text/javascript\">\r\n        var target;\r\n        $(function () {\r\n            target = $(\'#skillsets\').data(\"ejListBox\");\r\n        });\r\n    </script>\r\n");
                EndContext();
            }
                          );
            DefineSection("StyleSection", async() => {
                BeginContext(834, 235, true);
                WriteLiteral("\r\n    <style type=\"text/css\" class=\"cssStyles\">\r\n        .ctrllabel {\r\n            padding: 0px 0px 12px 3px;\r\n            font-weight: 600;\r\n        }\r\n\r\n        .e-ddl-popup {\r\n            margin: 0 auto;\r\n        }\r\n\r\n    </style>\r\n");
                EndContext();
            }
                          );
        }
Exemple #3
0
        #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\">ListBox / Grouping</span>");
                EndContext();
            }
                          );
            DefineSection("MetaTags", async() => {
                BeginContext(100, 176, true);
                WriteLiteral("\r\n    <meta name=\"description\" content=\"This example demonstrates how to group items and providing a header for each group in the Syncfusion ASP.NET Core ListBox component.\">\r\n");
                EndContext();
            }
                          );
            DefineSection("ControlsSection", async() => {
                BeginContext(304, 122, true);
                WriteLiteral("\r\n    <div class=\"control frame\">\r\n        <div class=\"ctrllabel\">\r\n            Select a country\r\n        </div>\r\n        ");
                EndContext();
                BeginContext(426, 147, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("ej-list-box", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "cb1db38ea5914a9494b2bba2feb12fc5", async() => {
                    BeginContext(482, 14, true);
                    WriteLiteral("\r\n            ");
                    EndContext();
                    BeginContext(496, 53, false);
                    __tagHelperExecutionContext = __tagHelperScopeManager.Begin("e-list-box-fields", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "5dacb5efd69840fd96a17bc9188628f7", async() => {
                    }
                                                                                );
                    __Syncfusion_JavaScript_Models_ListBoxFields = CreateTagHelper <global::Syncfusion.JavaScript.Models.ListBoxFields>();
                    __tagHelperExecutionContext.Add(__Syncfusion_JavaScript_Models_ListBoxFields);
                    __Syncfusion_JavaScript_Models_ListBoxFields.Text = (string)__tagHelperAttribute_0.Value;
                    __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_0);
                    __Syncfusion_JavaScript_Models_ListBoxFields.GroupBy = (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(549, 10, true);
                    WriteLiteral("\r\n        ");
                    EndContext();
                }
                                                                            );
                __Syncfusion_JavaScript_Models_ListBoxProperties = CreateTagHelper <global::Syncfusion.JavaScript.Models.ListBoxProperties>();
                __tagHelperExecutionContext.Add(__Syncfusion_JavaScript_Models_ListBoxProperties);
                __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_2);
#line 11 "D:\Samples_17.2.0.46\ASPNETCORE\samplebrowser_core_2_0\Views\ListBox\Grouping.cshtml"
                __Syncfusion_JavaScript_Models_ListBoxProperties.DataSource = ViewBag.datasource;

#line default
#line hidden
                __tagHelperExecutionContext.AddTagHelperAttribute("datasource", __Syncfusion_JavaScript_Models_ListBoxProperties.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(573, 14, true);
                WriteLiteral("\r\n    </div>\r\n");
                EndContext();
            }
                          );
            DefineSection("StyleSection", async() => {
                BeginContext(612, 235, true);
                WriteLiteral("\r\n    <style type=\"text/css\" class=\"cssStyles\">\r\n        .ctrllabel {\r\n            padding: 0px 0px 12px 3px;\r\n            font-weight: 600;\r\n        }\r\n\r\n        .e-ddl-popup {\r\n            margin: 0 auto;\r\n        }\r\n\r\n    </style>\r\n");
                EndContext();
            }
                          );
        }
        #pragma warning disable 1998
        public async override global::System.Threading.Tasks.Task ExecuteAsync()
        {
            DefineSection("SampleHeading", async() => {
                BeginContext(23, 57, true);
                WriteLiteral("\r\n    <span class=\"sampleName\">ListBox / Cascading</span>");
                EndContext();
            }
                          );
            DefineSection("MetaTags", async() => {
                BeginContext(101, 184, true);
                WriteLiteral("\r\n    <meta name=\"description\" content=\"This example demonstrates how to display child list items based on their parent list items in the Syncfusion ASP.NET Core ListBox component.\">\r\n");
                EndContext();
            }
                          );
            DefineSection("ControlsSection", async() => {
                BeginContext(313, 161, true);
                WriteLiteral("\r\n    <div class=\"frame\">\r\n        <div class=\"row\">\r\n            <div class=\"contents\">\r\n                <span class=\"txt\">Select group</span>\r\n                ");
                EndContext();
                BeginContext(474, 178, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("ej-list-box", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "dd0576b59f5e4f8b8c2946e44cdd7aea", async() => {
                    BeginContext(560, 22, true);
                    WriteLiteral("\r\n                    ");
                    EndContext();
                    BeginContext(582, 38, false);
                    __tagHelperExecutionContext = __tagHelperScopeManager.Begin("e-list-box-fields", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "4b4904db22534415a021c4d43d0bb1ab", async() => {
                    }
                                                                                );
                    __Syncfusion_JavaScript_Models_ListBoxFields = CreateTagHelper <global::Syncfusion.JavaScript.Models.ListBoxFields>();
                    __tagHelperExecutionContext.Add(__Syncfusion_JavaScript_Models_ListBoxFields);
                    __Syncfusion_JavaScript_Models_ListBoxFields.Value = (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(620, 18, true);
                    WriteLiteral("\r\n                ");
                    EndContext();
                }
                                                                            );
                __Syncfusion_JavaScript_Models_ListBoxProperties = CreateTagHelper <global::Syncfusion.JavaScript.Models.ListBoxProperties>();
                __tagHelperExecutionContext.Add(__Syncfusion_JavaScript_Models_ListBoxProperties);
                __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_1);
#line 11 "D:\Samples_17.2.0.46\ASPNETCORE\samplebrowser_core_2_0\Views\ListBox\Cascading.cshtml"
                __Syncfusion_JavaScript_Models_ListBoxProperties.DataSource = ViewBag.datasource;

#line default
#line hidden
                __tagHelperExecutionContext.AddTagHelperAttribute("datasource", __Syncfusion_JavaScript_Models_ListBoxProperties.DataSource, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
                __Syncfusion_JavaScript_Models_ListBoxProperties.CascadeTo = (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(652, 165, true);
                WriteLiteral("                \r\n\r\n            </div>\r\n            <div class=\"contents col-sm-offset-2\">\r\n                <span class=\"txt\">Select country</span>\r\n                ");
                EndContext();
                BeginContext(817, 102, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("ej-list-box", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "c3f8fab6c4804ed19bcc09350eaa4712", async() => {
                }
                                                                            );
                __Syncfusion_JavaScript_Models_ListBoxProperties = CreateTagHelper <global::Syncfusion.JavaScript.Models.ListBoxProperties>();
                __tagHelperExecutionContext.Add(__Syncfusion_JavaScript_Models_ListBoxProperties);
                __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_3);
#line 18 "D:\Samples_17.2.0.46\ASPNETCORE\samplebrowser_core_2_0\Views\ListBox\Cascading.cshtml"
                __Syncfusion_JavaScript_Models_ListBoxProperties.DataSource = ViewBag.datasource;

#line default
#line hidden
                __tagHelperExecutionContext.AddTagHelperAttribute("datasource", __Syncfusion_JavaScript_Models_ListBoxProperties.DataSource, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
#line 18 "D:\Samples_17.2.0.46\ASPNETCORE\samplebrowser_core_2_0\Views\ListBox\Cascading.cshtml"
                __Syncfusion_JavaScript_Models_ListBoxProperties.LoadDataOnInit = false;

#line default
#line hidden
                __tagHelperExecutionContext.AddTagHelperAttribute("load-data-on-init", __Syncfusion_JavaScript_Models_ListBoxProperties.LoadDataOnInit, 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(919, 66, true);
                WriteLiteral("                \r\n            </div>\r\n        </div>\r\n    </div>\r\n");
                EndContext();
            }
                          );
            DefineSection("StyleSection", async() => {
                BeginContext(1010, 467, true);
                WriteLiteral(@"
    <style class=""cssStyles"">
        .txt {
            display: block;
            margin-bottom: 12px;
            font-weight: 600;
        }
        
        .contents {
            padding-left: 36px;
            position: relative;
            margin: 0 auto;
            float: left;
        }

        .content-container-fluid .row {
            margin: 0;
        }

        .frame {
            width: 500px;
        }
    </style>
");
                EndContext();
            }
                          );
        }
Exemple #5
0
        #pragma warning disable 1998
        public async override global::System.Threading.Tasks.Task ExecuteAsync()
        {
            DefineSection("SampleHeading", async() => {
                BeginContext(23, 55, true);
                WriteLiteral("\r\n    <span class=\"sampleName\">ListBox / ToolTip</span>");
                EndContext();
            }
                          );
            DefineSection("MetaTags", async() => {
                BeginContext(99, 162, true);
                WriteLiteral("\r\n    <meta name=\"description\" content=\"This example demonstrates how to display tooltips for the list items in the Syncfusion ASP.NET Core ListBox component.\">\r\n");
                EndContext();
            }
                          );
            DefineSection("ControlsSection", async() => {
                BeginContext(289, 109, true);
                WriteLiteral("\r\n        <div class=\"control frame\">\r\n            <div class=\"ctrllabel\">Select a person</div>\r\n            ");
                EndContext();
                BeginContext(398, 173, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("ej-list-box", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "3e21dc3ee114456aac830e1889b6fb14", async() => {
                    BeginContext(471, 18, true);
                    WriteLiteral("\r\n                ");
                    EndContext();
                    BeginContext(489, 54, false);
                    __tagHelperExecutionContext = __tagHelperScopeManager.Begin("e-list-box-fields", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "f92f0b8655354c58bfa682ec3828f268", async() => {
                    }
                                                                                );
                    __Syncfusion_JavaScript_Models_ListBoxFields = CreateTagHelper <global::Syncfusion.JavaScript.Models.ListBoxFields>();
                    __tagHelperExecutionContext.Add(__Syncfusion_JavaScript_Models_ListBoxFields);
                    __Syncfusion_JavaScript_Models_ListBoxFields.Text = (string)__tagHelperAttribute_0.Value;
                    __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_0);
                    __Syncfusion_JavaScript_Models_ListBoxFields.TooltipText = (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(543, 14, true);
                    WriteLiteral("\r\n            ");
                    EndContext();
                }
                                                                            );
                __Syncfusion_JavaScript_Models_ListBoxProperties = CreateTagHelper <global::Syncfusion.JavaScript.Models.ListBoxProperties>();
                __tagHelperExecutionContext.Add(__Syncfusion_JavaScript_Models_ListBoxProperties);
                __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_2);
#line 9 "D:\Samples_17.2.0.46\ASPNETCORE\samplebrowser_core_2_0\Views\ListBox\Tooltip.cshtml"
                __Syncfusion_JavaScript_Models_ListBoxProperties.DataSource = ViewBag.datasource;

#line default
#line hidden
                __tagHelperExecutionContext.AddTagHelperAttribute("datasource", __Syncfusion_JavaScript_Models_ListBoxProperties.DataSource, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
                __Syncfusion_JavaScript_Models_ListBoxProperties.Height = (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(571, 29, true);
                WriteLiteral("           \r\n        </div>\r\n");
                EndContext();
            }
                          );
            DefineSection("StyleSection", async() => {
                BeginContext(625, 246, true);
                WriteLiteral("\r\n    <style type=\"text/css\" class=\"cssStyles\">\r\n        .ctrllabel {            \r\n            padding: 5px 0px 12px 3px;\r\n            font-weight:500;\r\n        }\r\n\r\n        .e-ddl-popup {\r\n            margin: 0 auto;\r\n        }\r\n\r\n    </style>\r\n");
                EndContext();
            }
                          );
        }
        #pragma warning disable 1998
        public async override global::System.Threading.Tasks.Task ExecuteAsync()
        {
            DefineSection("SampleHeading", async() => {
                BeginContext(23, 74, true);
                WriteLiteral("\r\n    <span class=\"sampleName\">ListBox / Data Binding - Remote data</span>");
                EndContext();
            }
                          );
            DefineSection("MetaTags", async() => {
                BeginContext(118, 172, true);
                WriteLiteral("\r\n    <meta name=\"description\" content=\"This example demonstrates how to bind the remote data source key value mapping in the Syncfusion ASP.NET Core ListBox component.\">\r\n");
                EndContext();
            }
                          );
            DefineSection("ControlsSection", async() => {
                BeginContext(318, 123, true);
                WriteLiteral("\r\n    <div class=\"control frame\">\r\n        <div class=\"ctrllabel\">\r\n            Select a customer\r\n        </div>\r\n        ");
                EndContext();
                BeginContext(441, 276, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("ej-list-box", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "23319df4bef04d91bf5d9890fc70cdff", async() => {
                    BeginContext(518, 14, true);
                    WriteLiteral("\r\n            ");
                    EndContext();
                    BeginContext(532, 108, false);
                    __tagHelperExecutionContext = __tagHelperScopeManager.Begin("e-datamanager", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "a8545853f57e49fd9ded5954e0780a06", 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 12 "D:\Samples_17.2.0.46\ASPNETCORE\samplebrowser_core_2_0\Views\ListBox\RemoteData.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(640, 14, true);
                    WriteLiteral("\r\n            ");
                    EndContext();
                    BeginContext(654, 39, false);
                    __tagHelperExecutionContext = __tagHelperScopeManager.Begin("e-list-box-fields", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "68a45ab6629a431ab0c6ac2dd62ef149", async() => {
                    }
                                                                                );
                    __Syncfusion_JavaScript_Models_ListBoxFields = CreateTagHelper <global::Syncfusion.JavaScript.Models.ListBoxFields>();
                    __tagHelperExecutionContext.Add(__Syncfusion_JavaScript_Models_ListBoxFields);
                    __Syncfusion_JavaScript_Models_ListBoxFields.Text = (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(693, 10, true);
                    WriteLiteral("\r\n        ");
                    EndContext();
                }
                                                                            );
                __Syncfusion_JavaScript_Models_ListBoxProperties = CreateTagHelper <global::Syncfusion.JavaScript.Models.ListBoxProperties>();
                __tagHelperExecutionContext.Add(__Syncfusion_JavaScript_Models_ListBoxProperties);
                __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_2);
                __Syncfusion_JavaScript_Models_ListBoxProperties.Query = (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(717, 22, true);
                WriteLiteral("        \r\n    </div>\r\n");
                EndContext();
            }
                          );
            DefineSection("StyleSection", async() => {
                BeginContext(764, 235, true);
                WriteLiteral("\r\n    <style type=\"text/css\" class=\"cssStyles\">\r\n        .ctrllabel {\r\n            padding: 0px 0px 12px 3px;\r\n            font-weight: 600;\r\n        }\r\n\r\n        .e-ddl-popup {\r\n            margin: 0 auto;\r\n        }\r\n\r\n    </style>\r\n");
                EndContext();
            }
                          );
        }
Exemple #7
0
        #pragma warning disable 1998
        public async override global::System.Threading.Tasks.Task ExecuteAsync()
        {
            DefineSection("SampleHeading", async() => {
                BeginContext(23, 65, true);
                WriteLiteral("\r\n    <span class=\"sampleName\">ListBox / Virtual Scrolling</span>");
                EndContext();
            }
                          );
            DefineSection("MetaTags", async() => {
                BeginContext(109, 163, true);
                WriteLiteral("\r\n    <meta name=\"description\" content=\"This example demonstrates how to load large amounts of data on demand in the Syncfusion ASP.NET Core ListBox component.\">\r\n");
                EndContext();
            }
                          );
            DefineSection("ControlsSection", async() => {
                BeginContext(300, 125, true);
                WriteLiteral("\r\n    <div class=\"control frame\">\r\n        <div class=\"ctrllabel\">\r\n            Select a customer\r\n        </div>\r\n\r\n        ");
                EndContext();
                BeginContext(425, 320, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("ej-list-box", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "b37dc407563141cd9f106e4b8cfc6649", async() => {
                    BeginContext(546, 14, true);
                    WriteLiteral("\r\n            ");
                    EndContext();
                    BeginContext(560, 108, false);
                    __tagHelperExecutionContext = __tagHelperScopeManager.Begin("e-datamanager", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "7a9de43597784d5198f68252f47aec43", 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 13 "D:\Samples_17.2.0.46\ASPNETCORE\samplebrowser_core_2_0\Views\ListBox\VirtualScrolling.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(668, 14, true);
                    WriteLiteral("\r\n            ");
                    EndContext();
                    BeginContext(682, 39, false);
                    __tagHelperExecutionContext = __tagHelperScopeManager.Begin("e-list-box-fields", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "e6f1295b901849b6b1c2a313a3452cc2", async() => {
                    }
                                                                                );
                    __Syncfusion_JavaScript_Models_ListBoxFields = CreateTagHelper <global::Syncfusion.JavaScript.Models.ListBoxFields>();
                    __tagHelperExecutionContext.Add(__Syncfusion_JavaScript_Models_ListBoxFields);
                    __Syncfusion_JavaScript_Models_ListBoxFields.Text = (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(721, 10, true);
                    WriteLiteral("\r\n        ");
                    EndContext();
                }
                                                                            );
                __Syncfusion_JavaScript_Models_ListBoxProperties = CreateTagHelper <global::Syncfusion.JavaScript.Models.ListBoxProperties>();
                __tagHelperExecutionContext.Add(__Syncfusion_JavaScript_Models_ListBoxProperties);
                __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_2);
                __Syncfusion_JavaScript_Models_ListBoxProperties.Query = (string)__tagHelperAttribute_3.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_3);
#line 12 "D:\Samples_17.2.0.46\ASPNETCORE\samplebrowser_core_2_0\Views\ListBox\VirtualScrolling.cshtml"
                __Syncfusion_JavaScript_Models_ListBoxProperties.AllowVirtualScrolling = true;

#line default
#line hidden
                __tagHelperExecutionContext.AddTagHelperAttribute("allow-virtual-scrolling", __Syncfusion_JavaScript_Models_ListBoxProperties.AllowVirtualScrolling, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
#line 12 "D:\Samples_17.2.0.46\ASPNETCORE\samplebrowser_core_2_0\Views\ListBox\VirtualScrolling.cshtml"
                __Syncfusion_JavaScript_Models_ListBoxProperties.ItemRequestCount = 10;

#line default
#line hidden
                __tagHelperExecutionContext.AddTagHelperAttribute("item-request-count", __Syncfusion_JavaScript_Models_ListBoxProperties.ItemRequestCount, 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(745, 24, true);
                WriteLiteral("        \r\n\r\n    </div>\r\n");
                EndContext();
            }
                          );
            DefineSection("PropertiesSection", async() => {
                BeginContext(799, 122, true);
                WriteLiteral("\r\n    <div class=\"row\">\r\n        <div class=\"col-md-3\">Select Dropdown</div>\r\n        <div class=\"col-md-3\">\r\n            ");
                EndContext();
                BeginContext(921, 135, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("ej-drop-down-list", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "ff35868449464b8695d9bd0877a22519", async() => {
                }
                                                                            );
                __Syncfusion_JavaScript_Models_DropDownListProperties = CreateTagHelper <global::Syncfusion.JavaScript.Models.DropDownListProperties>();
                __tagHelperExecutionContext.Add(__Syncfusion_JavaScript_Models_DropDownListProperties);
                __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_4);
                __Syncfusion_JavaScript_Models_DropDownListProperties.Width = (string)__tagHelperAttribute_5.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_5);
#line 23 "D:\Samples_17.2.0.46\ASPNETCORE\samplebrowser_core_2_0\Views\ListBox\VirtualScrolling.cshtml"
                __Syncfusion_JavaScript_Models_DropDownListProperties.SelectedItemIndex = 0;

#line default
#line hidden
                __tagHelperExecutionContext.AddTagHelperAttribute("selected-item-index", __Syncfusion_JavaScript_Models_DropDownListProperties.SelectedItemIndex, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
                __Syncfusion_JavaScript_Models_DropDownListProperties.Change = (string)__tagHelperAttribute_6.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_6);
                __Syncfusion_JavaScript_Models_DropDownListProperties.TargetID = (string)__tagHelperAttribute_7.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_7);
                await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
                if (!__tagHelperExecutionContext.Output.IsContentModified)
                {
                    await __tagHelperExecutionContext.SetOutputContentAsync();
                }
                Write(__tagHelperExecutionContext.Output);
                __tagHelperExecutionContext = __tagHelperScopeManager.End();
                EndContext();
                BeginContext(1056, 277, true);
                WriteLiteral(@"            

            <div id=""Targetid"">
                <ul>
                    <li value=""disablevirtual"">Normal Mode</li>
                    <li value=""enablevirtual"">Continuous Mode</li>
                </ul>
            </div>
        </div>
    </div>

");
                EndContext();
            }
                          );
            DefineSection("StyleSection", async() => {
                BeginContext(1358, 233, true);
                WriteLiteral("\r\n    <style type=\"text/css\" class=\"cssStyles\">\r\n        .ctrllabel {\r\n            padding: 0px 0px 12px 3px;\r\n            font-weight: 600;\r\n        }\r\n\r\n        .e-ddl-popup {\r\n            margin: 0 auto;\r\n        }\r\n    </style>\r\n");
                EndContext();
            }
                          );
            DefineSection("ScriptSection", async() => {
                BeginContext(1617, 1200, true);
                WriteLiteral(@"
    <script type=""text/javascript"">
        function onValueChange(args) {
            var target = $('#selectlang').data(""ejListBox"");
            //target.destroy();
            var dataManger = ej.DataManager({
                url: ""//js.syncfusion.com/ejServices/Wcf/Northwind.svc/"", crossDomain: true
            });
            // Query creation
            var query = ej.Query()
                   .from(""Customers"");
            if (args.value == ""enablevirtual"") {
                $(""#selectlang"").ejListBox({
                    dataSource: dataManger,
                    fields: { text: ""CustomerID"" },
                    query: query, allowVirtualScrolling: true, virtualScrollMode: ej.VirtualScrollMode.Continuous

                });
            }
            if (args.value == ""disablevirtual"") {
                $(""#selectlang"").ejListBox({
                    dataSource: dataManger,
                    fields: { text: ""CustomerID"" },
                    query: query, allowVirtu");
                WriteLiteral("alScrolling: true\r\n                });\r\n            }\r\n        }\r\n        $(function () {\r\n            $(\"#sampleProperties\").ejPropertiesPanel();\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, 58, true);
                WriteLiteral("\r\n    <span class=\"sampleName\">ListBox / Reordering</span>");
                EndContext();
            }
                          );
            DefineSection("MetaTags", async() => {
                BeginContext(102, 167, true);
                WriteLiteral("\r\n    <meta name=\"description\" content=\"This example demonstrates how to move the Syncfusion ASP.NET Core ListBox component items up or down into another position.\">\r\n");
                EndContext();
            }
                          );
            DefineSection("ControlsSection", async() => {
                BeginContext(297, 120, true);
                WriteLiteral("\r\n    <div class=\"control frame\">\r\n        <div class=\"ctrllabel\">\r\n            Reorder skills\r\n        </div>\r\n        ");
                EndContext();
                BeginContext(417, 131, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("ej-list-box", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "c91ddc2fe6eb4547b9f6a98fe960c462", async() => {
                    BeginContext(477, 14, true);
                    WriteLiteral("\r\n            ");
                    EndContext();
                    BeginContext(491, 33, false);
                    __tagHelperExecutionContext = __tagHelperScopeManager.Begin("e-list-box-fields", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "4d1776e60ddf4c7fa8579d80159b3a7d", async() => {
                    }
                                                                                );
                    __Syncfusion_JavaScript_Models_ListBoxFields = CreateTagHelper <global::Syncfusion.JavaScript.Models.ListBoxFields>();
                    __tagHelperExecutionContext.Add(__Syncfusion_JavaScript_Models_ListBoxFields);
                    __Syncfusion_JavaScript_Models_ListBoxFields.Text = (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(524, 10, true);
                    WriteLiteral("\r\n        ");
                    EndContext();
                }
                                                                            );
                __Syncfusion_JavaScript_Models_ListBoxProperties = CreateTagHelper <global::Syncfusion.JavaScript.Models.ListBoxProperties>();
                __tagHelperExecutionContext.Add(__Syncfusion_JavaScript_Models_ListBoxProperties);
                __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_1);
#line 11 "D:\Samples_17.2.0.46\ASPNETCORE\samplebrowser_core_2_0\Views\ListBox\Reordering.cshtml"
                __Syncfusion_JavaScript_Models_ListBoxProperties.DataSource = ViewBag.datasource;

#line default
#line hidden
                __tagHelperExecutionContext.AddTagHelperAttribute("datasource", __Syncfusion_JavaScript_Models_ListBoxProperties.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(548, 24, true);
                WriteLiteral("\r\n        \r\n    </div>\r\n");
                EndContext();
            }
                          );
            DefineSection("PropertiesSection", async() => {
                BeginContext(602, 70, true);
                WriteLiteral("\r\n    <div class=\"row\">\r\n        <div class=\"col-md-12\">\r\n            ");
                EndContext();
                BeginContext(672, 69, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("ej-button", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "a79fd15fd46c41f9b4a3bc5c5b069405", async() => {
                }
                                                                            );
                __Syncfusion_JavaScript_Models_ButtonProperties = CreateTagHelper <global::Syncfusion.JavaScript.Models.ButtonProperties>();
                __tagHelperExecutionContext.Add(__Syncfusion_JavaScript_Models_ButtonProperties);
                __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_2);
                __Syncfusion_JavaScript_Models_ButtonProperties.Text = (string)__tagHelperAttribute_3.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_3);
                __Syncfusion_JavaScript_Models_ButtonProperties.Width = (string)__tagHelperAttribute_4.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_4);
                __Syncfusion_JavaScript_Models_ButtonProperties.Click = (string)__tagHelperAttribute_5.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_5);
                await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
                if (!__tagHelperExecutionContext.Output.IsContentModified)
                {
                    await __tagHelperExecutionContext.SetOutputContentAsync();
                }
                Write(__tagHelperExecutionContext.Output);
                __tagHelperExecutionContext = __tagHelperScopeManager.End();
                EndContext();
                BeginContext(741, 98, true);
                WriteLiteral("\r\n        </div>\r\n    </div>\r\n    <div class=\"row\">\r\n        <div class=\"col-md-12\">\r\n            ");
                EndContext();
                BeginContext(839, 75, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("ej-button", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "90296a24e5154c6fae68c40139ab8d05", async() => {
                }
                                                                            );
                __Syncfusion_JavaScript_Models_ButtonProperties = CreateTagHelper <global::Syncfusion.JavaScript.Models.ButtonProperties>();
                __tagHelperExecutionContext.Add(__Syncfusion_JavaScript_Models_ButtonProperties);
                __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_6);
                __Syncfusion_JavaScript_Models_ButtonProperties.Text = (string)__tagHelperAttribute_7.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_7);
                __Syncfusion_JavaScript_Models_ButtonProperties.Width = (string)__tagHelperAttribute_4.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_4);
                __Syncfusion_JavaScript_Models_ButtonProperties.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(914, 30, true);
                WriteLiteral("\r\n        </div>\r\n    </div>\r\n");
                EndContext();
            }
                          );
            DefineSection("ScriptSection", async() => {
                BeginContext(970, 440, true);
                WriteLiteral(@"
    <script type=""text/javascript"">
        var target;
        $(function () {
            $(""#sampleProperties"").ejPropertiesPanel();
        });
        function Moveup(e) {
            var target = $('#skillsets').data(""ejListBox"");
            target.moveUp();
        }
        function Movedown(e) {
            var target = $('#skillsets').data(""ejListBox"");
            target.moveDown();
        }

    </script>
");
                EndContext();
            }
                          );
            DefineSection("StyleSection", async() => {
                BeginContext(1435, 235, true);
                WriteLiteral("\r\n    <style type=\"text/css\" class=\"cssStyles\">\r\n        .ctrllabel {\r\n            padding: 0px 0px 12px 3px;\r\n            font-weight: 600;\r\n        }\r\n\r\n        .e-ddl-popup {\r\n            margin: 0 auto;\r\n        }\r\n\r\n    </style>\r\n");
                EndContext();
            }
                          );
        }
        #pragma warning disable 1998
        public async override global::System.Threading.Tasks.Task ExecuteAsync()
        {
            DefineSection("SampleHeading", async() => {
                BeginContext(23, 72, true);
                WriteLiteral("\r\n    <span class=\"sampleName\">ListBox / DataBinding - Local data</span>");
                EndContext();
            }
                          );
            DefineSection("MetaTags", async() => {
                BeginContext(116, 171, true);
                WriteLiteral("\r\n    <meta name=\"description\" content=\"This example demonstrates how to bind the local data source key value mapping in the Syncfusion ASP.NET Core ListBox component.\">\r\n");
                EndContext();
            }
                          );
            DefineSection("ControlsSection", async() => {
                BeginContext(315, 125, true);
                WriteLiteral("\r\n        <div class=\"control frame\">\r\n            <div class=\"ctrllabel\">\r\n                Select a bike</div>\r\n            ");
                EndContext();
                BeginContext(440, 162, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("ej-list-box", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "3efd4b5843644758b6cb53991b2dac5e", async() => {
                    BeginContext(499, 18, true);
                    WriteLiteral("\r\n                ");
                    EndContext();
                    BeginContext(517, 57, false);
                    __tagHelperExecutionContext = __tagHelperScopeManager.Begin("e-list-box-fields", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "c3a7dc40225e475fa2d5c10b54e1a827", async() => {
                    }
                                                                                );
                    __Syncfusion_JavaScript_Models_ListBoxFields = CreateTagHelper <global::Syncfusion.JavaScript.Models.ListBoxFields>();
                    __tagHelperExecutionContext.Add(__Syncfusion_JavaScript_Models_ListBoxFields);
                    __Syncfusion_JavaScript_Models_ListBoxFields.Id = (string)__tagHelperAttribute_0.Value;
                    __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_0);
                    __Syncfusion_JavaScript_Models_ListBoxFields.Text = (string)__tagHelperAttribute_1.Value;
                    __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_1);
                    __Syncfusion_JavaScript_Models_ListBoxFields.Value = (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(574, 14, true);
                    WriteLiteral("\r\n            ");
                    EndContext();
                }
                                                                            );
                __Syncfusion_JavaScript_Models_ListBoxProperties = CreateTagHelper <global::Syncfusion.JavaScript.Models.ListBoxProperties>();
                __tagHelperExecutionContext.Add(__Syncfusion_JavaScript_Models_ListBoxProperties);
                __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_3);
#line 10 "D:\Samples_17.2.0.46\ASPNETCORE\samplebrowser_core_2_0\Views\ListBox\LocalData.cshtml"
                __Syncfusion_JavaScript_Models_ListBoxProperties.DataSource = ViewBag.datasource;

#line default
#line hidden
                __tagHelperExecutionContext.AddTagHelperAttribute("datasource", __Syncfusion_JavaScript_Models_ListBoxProperties.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(602, 30, true);
                WriteLiteral("            \r\n        </div>\r\n");
                EndContext();
            }
                          );
            DefineSection("StyleSection", async() => {
                BeginContext(657, 219, true);
                WriteLiteral("\r\n    <style class=\"cssStyles\">\r\n        .ctrllabel {\r\n            padding: 0px 0px 12px 3px;\r\n            font-weight: 600;\r\n        }\r\n\r\n        .e-ddl-popup {\r\n            margin: 0 auto;\r\n        }\r\n\r\n    </style>\r\n");
                EndContext();
            }
                          );
        }
        #pragma warning disable 1998
        public async override global::System.Threading.Tasks.Task ExecuteAsync()
        {
            DefineSection("SampleHeading", async() => {
                BeginContext(23, 54, true);
                WriteLiteral("\r\n    <span class=\"sampleName\">ListBox / Events</span>");
                EndContext();
            }
                          );
            DefineSection("MetaTags", async() => {
                BeginContext(98, 200, true);
                WriteLiteral("\r\n    <meta name=\"description\" content=\"This example demonstrates client-side events and triggered events when particular operations are performed in the Syncfusion ASP.NET Core ListBox component.\">\r\n");
                EndContext();
            }
                          );
            DefineSection("ControlsSection", async() => {
                BeginContext(326, 197, true);
                WriteLiteral("\r\n    <div class=\"frame\">\r\n        <div class=\"row\">\r\n            <div class=\"ctrllabel\">\r\n                Select a country\r\n            </div>\r\n            <div class=\"contents\">\r\n                ");
                EndContext();
                BeginContext(523, 409, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("ej-list-box", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "9a901169fd7c4e2a9fbce9c10c243d8f", async() => {
                    BeginContext(826, 22, true);
                    WriteLiteral("\r\n                    ");
                    EndContext();
                    BeginContext(848, 52, false);
                    __tagHelperExecutionContext = __tagHelperScopeManager.Begin("e-list-box-fields", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "aacda8a3c3294f1b9c817e09afe87426", async() => {
                    }
                                                                                );
                    __Syncfusion_JavaScript_Models_ListBoxFields = CreateTagHelper <global::Syncfusion.JavaScript.Models.ListBoxFields>();
                    __tagHelperExecutionContext.Add(__Syncfusion_JavaScript_Models_ListBoxFields);
                    __Syncfusion_JavaScript_Models_ListBoxFields.Text = (string)__tagHelperAttribute_0.Value;
                    __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_0);
                    __Syncfusion_JavaScript_Models_ListBoxFields.Value = (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(900, 18, true);
                    WriteLiteral("\r\n                ");
                    EndContext();
                }
                                                                            );
                __Syncfusion_JavaScript_Models_ListBoxProperties = CreateTagHelper <global::Syncfusion.JavaScript.Models.ListBoxProperties>();
                __tagHelperExecutionContext.Add(__Syncfusion_JavaScript_Models_ListBoxProperties);
                __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_2);
#line 13 "D:\Samples_17.2.0.46\ASPNETCORE\samplebrowser_core_2_0\Views\ListBox\Events.cshtml"
                __Syncfusion_JavaScript_Models_ListBoxProperties.AllowMultiSelection = true;

#line default
#line hidden
                __tagHelperExecutionContext.AddTagHelperAttribute("allow-multi-selection", __Syncfusion_JavaScript_Models_ListBoxProperties.AllowMultiSelection, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
#line 13 "D:\Samples_17.2.0.46\ASPNETCORE\samplebrowser_core_2_0\Views\ListBox\Events.cshtml"
                __Syncfusion_JavaScript_Models_ListBoxProperties.AllowDragAndDrop = true;

#line default
#line hidden
                __tagHelperExecutionContext.AddTagHelperAttribute("allow-drag-and-drop", __Syncfusion_JavaScript_Models_ListBoxProperties.AllowDragAndDrop, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
#line 13 "D:\Samples_17.2.0.46\ASPNETCORE\samplebrowser_core_2_0\Views\ListBox\Events.cshtml"
                __Syncfusion_JavaScript_Models_ListBoxProperties.DataSource = ViewBag.datasource;

#line default
#line hidden
                __tagHelperExecutionContext.AddTagHelperAttribute("datasource", __Syncfusion_JavaScript_Models_ListBoxProperties.DataSource, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
                __Syncfusion_JavaScript_Models_ListBoxProperties.Create = (string)__tagHelperAttribute_3.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_3);
                __Syncfusion_JavaScript_Models_ListBoxProperties.ItemDrag = (string)__tagHelperAttribute_4.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_4);
                __Syncfusion_JavaScript_Models_ListBoxProperties.Select = (string)__tagHelperAttribute_5.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_5);
                __Syncfusion_JavaScript_Models_ListBoxProperties.Change = (string)__tagHelperAttribute_6.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_6);
                __Syncfusion_JavaScript_Models_ListBoxProperties.ItemDrop = (string)__tagHelperAttribute_7.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_7);
                __Syncfusion_JavaScript_Models_ListBoxProperties.ItemDragStop = (string)__tagHelperAttribute_8.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_8);
                __Syncfusion_JavaScript_Models_ListBoxProperties.ItemDragStart = (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(932, 119, true);
                WriteLiteral("                             \r\n            </div>\r\n            <div class=\"contents col-sm-offset-2\">\r\n                ");
                EndContext();
                BeginContext(1051, 103, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("ej-list-box", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "9b954114177a4abfbdcf6d34e9635291", async() => {
                }
                                                                            );
                __Syncfusion_JavaScript_Models_ListBoxProperties = CreateTagHelper <global::Syncfusion.JavaScript.Models.ListBoxProperties>();
                __tagHelperExecutionContext.Add(__Syncfusion_JavaScript_Models_ListBoxProperties);
                __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_10);
#line 18 "D:\Samples_17.2.0.46\ASPNETCORE\samplebrowser_core_2_0\Views\ListBox\Events.cshtml"
                __Syncfusion_JavaScript_Models_ListBoxProperties.AllowMultiSelection = true;

#line default
#line hidden
                __tagHelperExecutionContext.AddTagHelperAttribute("allow-multi-selection", __Syncfusion_JavaScript_Models_ListBoxProperties.AllowMultiSelection, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
#line 18 "D:\Samples_17.2.0.46\ASPNETCORE\samplebrowser_core_2_0\Views\ListBox\Events.cshtml"
                __Syncfusion_JavaScript_Models_ListBoxProperties.AllowDragAndDrop = true;

#line default
#line hidden
                __tagHelperExecutionContext.AddTagHelperAttribute("allow-drag-and-drop", __Syncfusion_JavaScript_Models_ListBoxProperties.AllowDragAndDrop, 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(1154, 66, true);
                WriteLiteral("                \r\n            </div>\r\n        </div>\r\n    </div>\r\n");
                EndContext();
            }
                          );
            DefineSection("EventsDropdown", async() => {
                BeginContext(1247, 2, true);
                WriteLiteral("\r\n");
                EndContext();
                BeginContext(1249, 168, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("ej-drop-down-list", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "eaaaeec4ade1404792f5f700bd129bf5", async() => {
                }
                                                                            );
                __Syncfusion_JavaScript_Models_DropDownListProperties = CreateTagHelper <global::Syncfusion.JavaScript.Models.DropDownListProperties>();
                __tagHelperExecutionContext.Add(__Syncfusion_JavaScript_Models_DropDownListProperties);
                __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_11);
                __Syncfusion_JavaScript_Models_DropDownListProperties.TargetID = (string)__tagHelperAttribute_12.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_12);
#line 24 "D:\Samples_17.2.0.46\ASPNETCORE\samplebrowser_core_2_0\Views\ListBox\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 24 "D:\Samples_17.2.0.46\ASPNETCORE\samplebrowser_core_2_0\Views\ListBox\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.Width = (string)__tagHelperAttribute_13.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_13);
                __Syncfusion_JavaScript_Models_DropDownListProperties.Change = (string)__tagHelperAttribute_14.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_14);
                await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
                if (!__tagHelperExecutionContext.Output.IsContentModified)
                {
                    await __tagHelperExecutionContext.SetOutputContentAsync();
                }
                Write(__tagHelperExecutionContext.Output);
                __tagHelperExecutionContext = __tagHelperScopeManager.End();
                EndContext();
                BeginContext(1417, 296, true);
                WriteLiteral(@"        
    <div id=""evntname"">
        <ul>
            <li>create</li>
            <li>change</li>
            <li>select</li>
            <li>itemDragStart</li>
            <li>itemDrag</li>
            <li>itemDragStop</li>
            <li>itemDrop</li>
        </ul>
    </div>
");
                EndContext();
            }
                          );
            DefineSection("ScriptSection", async() => {
                BeginContext(1739, 2219, true);
                WriteLiteral(@"
    <script type=""text/javascript"">
        var target;

        function Oncreate(args) {
            jQuery.addEventLog(""<span class='eventTitle'>Create</span> has been fired"");
        }
        function OnselectIndexchange(args) {
            jQuery.addEventLog(""<span class='eventTitle'>Change</span> has been fired"");
        }
        function Onselected(args) {
            jQuery.addEventLog(""<span class='eventTitle'>Select</span> has been fired"");
        }
        function OnitemDragStart(args) {
            jQuery.addEventLog(""<span class='eventTitle'>ItemDragStart</span> has been fired"");
        }
        function OnitemDrag(args) {
            jQuery.addEventLog(""<span class='eventTitle'>ItemDrag</span> has been fired"");
        }
        function OnitemDragStop(args) {
            jQuery.addEventLog(""<span class='eventTitle'>ItemDragStop</span> has been fired"");
        }
        function OnitemDropped(args) {
            jQuery.addEventLog(""<span class='eventTitle'>ItemDr");
                WriteLiteral(@"op</span> has been fired"");
        }
        function onClear() {
            jQuery.clearEventLog();
        }
        $("".evtbtn"").appendTo(""div .prop-grid.content"");
        function evtpropscheckedevent(args) {
            var target = $('#selectCountry2').data(""ejListBox"");
            if (args.isChecked) {
                switch (args.selectedText) {
                    case ""create"": target.option(args.selectedText, ""Oncreate""); break;
                    case ""change"": target.option(args.selectedText, ""OnselectIndexchange""); break;
                    case ""select"": target.option(args.selectedText, ""Onselected""); break;
                    case ""itemDragStart"": target.option(args.selectedText, ""OnitemDragStart""); break;
                    case ""itemDrag"": target.option(args.selectedText, ""OnitemDrag""); break;
                    case ""itemDragStop"": target.option(args.selectedText, ""OnitemDragStop""); break;
                    case ""itemDrop"": target.option(args.selectedText, ""Onitem");
                WriteLiteral("Dropped\"); break;\r\n                }\r\n            }\r\n            else {\r\n                target.option(args.selectedText, null);\r\n            }\r\n        }\r\n    </script>\r\n");
                EndContext();
            }
                          );
            DefineSection("StyleSection", async() => {
                BeginContext(3983, 411, true);
                WriteLiteral(@"
    <style type=""text/css"" class=""cssStyles"">
        .ctrllabel {
            padding: 0px 0px 12px 36px;
            font-weight: 600;
        }

        .contents {
            padding-left: 36px;
            padding-top:5px;
            position: relative;
            margin: 0 auto;
            float: left;
        }

        .frame {
            width: 500px;
        }
    </style>
");
                EndContext();
            }
                          );
        }
        #pragma warning disable 1998
        public async override global::System.Threading.Tasks.Task ExecuteAsync()
        {
            DefineSection("SampleHeading", async() => {
                BeginContext(23, 51, true);
                WriteLiteral("\r\n    <span class=\"sampleName\">ListBox / Rtl</span>");
                EndContext();
            }
                          );
            DefineSection("MetaTags", async() => {
                BeginContext(95, 166, true);
                WriteLiteral("\r\n    <meta name=\"description\" content=\"This example demonstrates how to list items in a right-to-left direction in the Syncfusion ASP.NET Core ListBox component.\">\r\n");
                EndContext();
            }
                          );
            DefineSection("ControlsSection", async() => {
                BeginContext(289, 122, true);
                WriteLiteral("\r\n    <div class=\"control frame\">\r\n        <div class=\"ctrllabel\">\r\n            Select a country\r\n        </div>\r\n        ");
                EndContext();
                BeginContext(411, 154, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("ej-list-box", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "77c0d76316994b46a5e433c59b5aed3f", async() => {
                    BeginContext(491, 14, true);
                    WriteLiteral("\r\n            ");
                    EndContext();
                    BeginContext(505, 36, false);
                    __tagHelperExecutionContext = __tagHelperScopeManager.Begin("e-list-box-fields", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "c3ea18db68274ece9fb4591df271c068", async() => {
                    }
                                                                                );
                    __Syncfusion_JavaScript_Models_ListBoxFields = CreateTagHelper <global::Syncfusion.JavaScript.Models.ListBoxFields>();
                    __tagHelperExecutionContext.Add(__Syncfusion_JavaScript_Models_ListBoxFields);
                    __Syncfusion_JavaScript_Models_ListBoxFields.Text = (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(541, 10, true);
                    WriteLiteral("\r\n        ");
                    EndContext();
                }
                                                                            );
                __Syncfusion_JavaScript_Models_ListBoxProperties = CreateTagHelper <global::Syncfusion.JavaScript.Models.ListBoxProperties>();
                __tagHelperExecutionContext.Add(__Syncfusion_JavaScript_Models_ListBoxProperties);
                __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_1);
#line 11 "D:\Samples_17.2.0.46\ASPNETCORE\samplebrowser_core_2_0\Views\ListBox\RTL.cshtml"
                __Syncfusion_JavaScript_Models_ListBoxProperties.DataSource = ViewBag.datasource;

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

#line default
#line hidden
                __tagHelperExecutionContext.AddTagHelperAttribute("enable-rtl", __Syncfusion_JavaScript_Models_ListBoxProperties.EnableRTL, 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(565, 14, true);
                WriteLiteral("\r\n    </div>\r\n");
                EndContext();
            }
                          );
            DefineSection("StyleSection", async() => {
                BeginContext(604, 235, true);
                WriteLiteral("\r\n    <style type=\"text/css\" class=\"cssStyles\">\r\n        .ctrllabel {\r\n            padding: 5px 0px 12px 3px;\r\n            font-weight: 600;\r\n        }\r\n\r\n        .e-ddl-popup {\r\n            margin: 0 auto;\r\n        }\r\n\r\n    </style>\r\n");
                EndContext();
            }
                          );
        }
Exemple #12
0
        #pragma warning disable 1998
        public async override global::System.Threading.Tasks.Task ExecuteAsync()
        {
            DefineSection("SampleHeading", async() => {
                BeginContext(23, 55, true);
                WriteLiteral("\r\n    <span class=\"sampleName\">ListBox / Methods</span>");
                EndContext();
            }
                          );
            DefineSection("MetaTags", async() => {
                BeginContext(99, 186, true);
                WriteLiteral("\r\n    <meta name=\"description\" content=\"This example demonstrates how to enable or disable, add or remove, and select or unselect the Syncfusion ASP.NET Core ListBox component items.\">\r\n");
                EndContext();
            }
                          );
            DefineSection("ControlsSection", async() => {
                BeginContext(313, 120, true);
                WriteLiteral("\r\n    <div class=\"control frame\">\r\n        <div class=\"ctrllabel\">\r\n            Select a skill\r\n        </div>\r\n        ");
                EndContext();
                BeginContext(433, 175, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("ej-list-box", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "3c1086147d08490c9b9fc6efdf1066a1", async() => {
                    BeginContext(524, 14, true);
                    WriteLiteral("\r\n            ");
                    EndContext();
                    BeginContext(538, 46, false);
                    __tagHelperExecutionContext = __tagHelperScopeManager.Begin("e-list-box-fields", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "0f6e080893724e57b7acbe39154b8e8e", async() => {
                    }
                                                                                );
                    __Syncfusion_JavaScript_Models_ListBoxFields = CreateTagHelper <global::Syncfusion.JavaScript.Models.ListBoxFields>();
                    __tagHelperExecutionContext.Add(__Syncfusion_JavaScript_Models_ListBoxFields);
                    __Syncfusion_JavaScript_Models_ListBoxFields.Text = (string)__tagHelperAttribute_0.Value;
                    __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_0);
                    __Syncfusion_JavaScript_Models_ListBoxFields.Value = (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(584, 10, true);
                    WriteLiteral("\r\n        ");
                    EndContext();
                }
                                                                            );
                __Syncfusion_JavaScript_Models_ListBoxProperties = CreateTagHelper <global::Syncfusion.JavaScript.Models.ListBoxProperties>();
                __tagHelperExecutionContext.Add(__Syncfusion_JavaScript_Models_ListBoxProperties);
                __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_2);
#line 11 "D:\Samples_17.2.0.46\ASPNETCORE\samplebrowser_core_2_0\Views\ListBox\Methods.cshtml"
                __Syncfusion_JavaScript_Models_ListBoxProperties.DataSource = ViewBag.datasource;

#line default
#line hidden
                __tagHelperExecutionContext.AddTagHelperAttribute("datasource", __Syncfusion_JavaScript_Models_ListBoxProperties.DataSource, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
#line 11 "D:\Samples_17.2.0.46\ASPNETCORE\samplebrowser_core_2_0\Views\ListBox\Methods.cshtml"
                __Syncfusion_JavaScript_Models_ListBoxProperties.AllowMultiSelection = true;

#line default
#line hidden
                __tagHelperExecutionContext.AddTagHelperAttribute("allow-multi-selection", __Syncfusion_JavaScript_Models_ListBoxProperties.AllowMultiSelection, 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(608, 22, true);
                WriteLiteral("        \r\n    </div>\r\n");
                EndContext();
            }
                          );
            DefineSection("PropertiesSection", async() => {
                BeginContext(660, 125, true);
                WriteLiteral("\r\n    <div class=\"row\">\r\n        <div class=\"col-md-3\">Enable/Disable All</div>\r\n        <div class=\"col-md-3\">\r\n            ");
                EndContext();
                BeginContext(785, 118, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("ej-toggle-button", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "70037ea8f0e14f838425a35960981005", async() => {
                }
                                                                            );
                __Syncfusion_JavaScript_Models_ToggleButtonProperties = CreateTagHelper <global::Syncfusion.JavaScript.Models.ToggleButtonProperties>();
                __tagHelperExecutionContext.Add(__Syncfusion_JavaScript_Models_ToggleButtonProperties);
                __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_3);
                __Syncfusion_JavaScript_Models_ToggleButtonProperties.Width = (string)__tagHelperAttribute_4.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_4);
                __Syncfusion_JavaScript_Models_ToggleButtonProperties.DefaultText = (string)__tagHelperAttribute_5.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_5);
                __Syncfusion_JavaScript_Models_ToggleButtonProperties.ActiveText = (string)__tagHelperAttribute_6.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_6);
                __Syncfusion_JavaScript_Models_ToggleButtonProperties.Click = (string)__tagHelperAttribute_7.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_7);
                await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
                if (!__tagHelperExecutionContext.Output.IsContentModified)
                {
                    await __tagHelperExecutionContext.SetOutputContentAsync();
                }
                Write(__tagHelperExecutionContext.Output);
                __tagHelperExecutionContext = __tagHelperScopeManager.End();
                EndContext();
                BeginContext(903, 158, true);
                WriteLiteral("            \r\n        </div>\r\n    </div>\r\n    <div class=\"row\">\r\n        <div class=\"col-md-3\">Remove Item</div>\r\n        <div class=\"col-md-3\">\r\n            ");
                EndContext();
                BeginContext(1061, 76, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("ej-button", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "959e88f6ec114f149c30d02584b1a280", async() => {
                }
                                                                            );
                __Syncfusion_JavaScript_Models_ButtonProperties = CreateTagHelper <global::Syncfusion.JavaScript.Models.ButtonProperties>();
                __tagHelperExecutionContext.Add(__Syncfusion_JavaScript_Models_ButtonProperties);
                __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_8);
                __Syncfusion_JavaScript_Models_ButtonProperties.Width = (string)__tagHelperAttribute_9.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_9);
                __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(1137, 260, true);
                WriteLiteral(@"            
        </div>
    </div>

    <div class=""row"">
        <div class=""col-md-3"">
            <input id=""additem"" style=""width: 95px"" class=""ejinputtext"" type=""text"" value=""Java"" />
        </div>
        <div class=""col-md-3"">
            ");
                EndContext();
                BeginContext(1397, 67, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("ej-button", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "ef5c26853b1944588068d6f732bcd068", async() => {
                }
                                                                            );
                __Syncfusion_JavaScript_Models_ButtonProperties = CreateTagHelper <global::Syncfusion.JavaScript.Models.ButtonProperties>();
                __tagHelperExecutionContext.Add(__Syncfusion_JavaScript_Models_ButtonProperties);
                __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_12);
                __Syncfusion_JavaScript_Models_ButtonProperties.Width = (string)__tagHelperAttribute_9.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_9);
                __Syncfusion_JavaScript_Models_ButtonProperties.Text = (string)__tagHelperAttribute_13.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_13);
                __Syncfusion_JavaScript_Models_ButtonProperties.Click = (string)__tagHelperAttribute_14.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_14);
                await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
                if (!__tagHelperExecutionContext.Output.IsContentModified)
                {
                    await __tagHelperExecutionContext.SetOutputContentAsync();
                }
                Write(__tagHelperExecutionContext.Output);
                __tagHelperExecutionContext = __tagHelperScopeManager.End();
                EndContext();
                BeginContext(1464, 263, true);
                WriteLiteral(@"            
        </div>
    </div>



    <div class=""row"">
        <div class=""col-md-3"">
            <input id=""selects"" style=""width: 95px"" class=""ejinputtext"" type=""text"" value=""3,4"" />
        </div>
        <div class=""col-md-3"">
            ");
                EndContext();
                BeginContext(1727, 91, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("ej-button", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "82267d0f3e65472eb29ad87f9ab59964", async() => {
                }
                                                                            );
                __Syncfusion_JavaScript_Models_ButtonProperties = CreateTagHelper <global::Syncfusion.JavaScript.Models.ButtonProperties>();
                __tagHelperExecutionContext.Add(__Syncfusion_JavaScript_Models_ButtonProperties);
                __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_15);
                __Syncfusion_JavaScript_Models_ButtonProperties.Width = (string)__tagHelperAttribute_9.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_9);
                __Syncfusion_JavaScript_Models_ButtonProperties.Text = (string)__tagHelperAttribute_16.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_16);
                __Syncfusion_JavaScript_Models_ButtonProperties.Click = (string)__tagHelperAttribute_17.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_17);
                await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
                if (!__tagHelperExecutionContext.Output.IsContentModified)
                {
                    await __tagHelperExecutionContext.SetOutputContentAsync();
                }
                Write(__tagHelperExecutionContext.Output);
                __tagHelperExecutionContext = __tagHelperScopeManager.End();
                EndContext();
                BeginContext(1818, 271, true);
                WriteLiteral(@"            
        </div>
    </div>
    <br />
    <div class=""row"">
        <div class=""col-md-3"">
            <input id=""unselects"" style=""width: 95px"" class=""ejinputtext"" type=""text"" value=""3,4"" />
        </div>
        <div class=""col-md-3"">
            ");
                EndContext();
                BeginContext(2089, 97, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("ej-button", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "cd18bd5ed2414dc7ba9d78ff0dec42bd", async() => {
                }
                                                                            );
                __Syncfusion_JavaScript_Models_ButtonProperties = CreateTagHelper <global::Syncfusion.JavaScript.Models.ButtonProperties>();
                __tagHelperExecutionContext.Add(__Syncfusion_JavaScript_Models_ButtonProperties);
                __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_18);
                __Syncfusion_JavaScript_Models_ButtonProperties.Width = (string)__tagHelperAttribute_9.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_9);
                __Syncfusion_JavaScript_Models_ButtonProperties.Text = (string)__tagHelperAttribute_19.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_19);
                __Syncfusion_JavaScript_Models_ButtonProperties.Click = (string)__tagHelperAttribute_20.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_20);
                await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
                if (!__tagHelperExecutionContext.Output.IsContentModified)
                {
                    await __tagHelperExecutionContext.SetOutputContentAsync();
                }
                Write(__tagHelperExecutionContext.Output);
                __tagHelperExecutionContext = __tagHelperScopeManager.End();
                EndContext();
                BeginContext(2186, 175, true);
                WriteLiteral("           \r\n        </div>\r\n    </div>\r\n    <br>\r\n    <div class=\"row\">\r\n        <div class=\"col-md-3\">CheckBox Visibility</div>\r\n        <div class=\"col-md-3\">\r\n            ");
                EndContext();
                BeginContext(2361, 133, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("ej-toggle-button", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "701ba174e1474be6a54e7590471c6059", async() => {
                }
                                                                            );
                __Syncfusion_JavaScript_Models_ToggleButtonProperties = CreateTagHelper <global::Syncfusion.JavaScript.Models.ToggleButtonProperties>();
                __tagHelperExecutionContext.Add(__Syncfusion_JavaScript_Models_ToggleButtonProperties);
                __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_21);
#line 62 "D:\Samples_17.2.0.46\ASPNETCORE\samplebrowser_core_2_0\Views\ListBox\Methods.cshtml"
                __Syncfusion_JavaScript_Models_ToggleButtonProperties.Size = ButtonSize.Normal;

#line default
#line hidden
                __tagHelperExecutionContext.AddTagHelperAttribute("size", __Syncfusion_JavaScript_Models_ToggleButtonProperties.Size, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
                __Syncfusion_JavaScript_Models_ToggleButtonProperties.Width = (string)__tagHelperAttribute_9.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_9);
                __Syncfusion_JavaScript_Models_ToggleButtonProperties.DefaultText = (string)__tagHelperAttribute_22.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_22);
                __Syncfusion_JavaScript_Models_ToggleButtonProperties.ActiveText = (string)__tagHelperAttribute_23.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_23);
                __Syncfusion_JavaScript_Models_ToggleButtonProperties.Click = (string)__tagHelperAttribute_24.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_24);
                await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
                if (!__tagHelperExecutionContext.Output.IsContentModified)
                {
                    await __tagHelperExecutionContext.SetOutputContentAsync();
                }
                Write(__tagHelperExecutionContext.Output);
                __tagHelperExecutionContext = __tagHelperScopeManager.End();
                EndContext();
                BeginContext(2494, 257, true);
                WriteLiteral(@"            

        </div>
    </div>
    <div class=""row"">
        <div class=""col-md-3"">
            <input id=""checks"" style=""width: 95px"" class=""ejinputtext"" type=""text"" value=""3,4"" disabled /></div>
        <div class=""col-md-3"">
            ");
                EndContext();
                BeginContext(2751, 84, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("ej-button", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "bc6905f9315f4f969e281a2b1f954a77", async() => {
                }
                                                                            );
                __Syncfusion_JavaScript_Models_ButtonProperties = CreateTagHelper <global::Syncfusion.JavaScript.Models.ButtonProperties>();
                __tagHelperExecutionContext.Add(__Syncfusion_JavaScript_Models_ButtonProperties);
                __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_25);
                __Syncfusion_JavaScript_Models_ButtonProperties.Width = (string)__tagHelperAttribute_9.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_9);
                __Syncfusion_JavaScript_Models_ButtonProperties.Text = (string)__tagHelperAttribute_26.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_26);
                __Syncfusion_JavaScript_Models_ButtonProperties.Click = (string)__tagHelperAttribute_27.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_27);
                await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
                if (!__tagHelperExecutionContext.Output.IsContentModified)
                {
                    await __tagHelperExecutionContext.SetOutputContentAsync();
                }
                Write(__tagHelperExecutionContext.Output);
                __tagHelperExecutionContext = __tagHelperScopeManager.End();
                EndContext();
                BeginContext(2835, 257, true);
                WriteLiteral(@"
        </div>
    </div>
    <br />
    <div class=""row"">
        <div class=""col-md-3"">
            <input id=""unchecks"" style=""width: 95px"" class=""ejinputtext"" type=""text"" value=""3,4"" disabled /></div>
        <div class=""col-md-3"">
            ");
                EndContext();
                BeginContext(3092, 90, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("ej-button", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "ee1241d26c5d480a8c2fbfc5808d2b4b", async() => {
                }
                                                                            );
                __Syncfusion_JavaScript_Models_ButtonProperties = CreateTagHelper <global::Syncfusion.JavaScript.Models.ButtonProperties>();
                __tagHelperExecutionContext.Add(__Syncfusion_JavaScript_Models_ButtonProperties);
                __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_28);
                __Syncfusion_JavaScript_Models_ButtonProperties.Width = (string)__tagHelperAttribute_9.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_9);
                __Syncfusion_JavaScript_Models_ButtonProperties.Text = (string)__tagHelperAttribute_29.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_29);
                __Syncfusion_JavaScript_Models_ButtonProperties.Click = (string)__tagHelperAttribute_30.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_30);
                await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
                if (!__tagHelperExecutionContext.Output.IsContentModified)
                {
                    await __tagHelperExecutionContext.SetOutputContentAsync();
                }
                Write(__tagHelperExecutionContext.Output);
                __tagHelperExecutionContext = __tagHelperScopeManager.End();
                EndContext();
                BeginContext(3182, 247, true);
                WriteLiteral("\r\n        </div>\r\n    </div>\r\n    <div class=\"row\">\r\n        <div class=\"col-md-3\">\r\n            <input id=\"disable\" style=\"width: 95px\" class=\"ejinputtext\" type=\"text\" value=\"2,4,6\" />\r\n        </div>\r\n        <div class=\"col-md-3\">\r\n            ");
                EndContext();
                BeginContext(3429, 93, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("ej-button", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "19e6042804ce4ee19fa142689b3c1010", async() => {
                }
                                                                            );
                __Syncfusion_JavaScript_Models_ButtonProperties = CreateTagHelper <global::Syncfusion.JavaScript.Models.ButtonProperties>();
                __tagHelperExecutionContext.Add(__Syncfusion_JavaScript_Models_ButtonProperties);
                __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_31);
                __Syncfusion_JavaScript_Models_ButtonProperties.Width = (string)__tagHelperAttribute_9.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_9);
                __Syncfusion_JavaScript_Models_ButtonProperties.Text = (string)__tagHelperAttribute_32.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_32);
                __Syncfusion_JavaScript_Models_ButtonProperties.Click = (string)__tagHelperAttribute_33.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_33);
                await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
                if (!__tagHelperExecutionContext.Output.IsContentModified)
                {
                    await __tagHelperExecutionContext.SetOutputContentAsync();
                }
                Write(__tagHelperExecutionContext.Output);
                __tagHelperExecutionContext = __tagHelperScopeManager.End();
                EndContext();
                BeginContext(3522, 256, true);
                WriteLiteral(@"
        </div>
    </div>
    <br />
    <div class=""row"">
        <div class=""col-md-3"">
            <input id=""enable"" style=""width: 95px"" class=""ejinputtext"" type=""text"" value=""2,4"" />
        </div>
        <div class=""col-md-3"">
            ");
                EndContext();
                BeginContext(3778, 90, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("ej-button", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "71fe3d07b1b648798b0dedf227e09b53", async() => {
                }
                                                                            );
                __Syncfusion_JavaScript_Models_ButtonProperties = CreateTagHelper <global::Syncfusion.JavaScript.Models.ButtonProperties>();
                __tagHelperExecutionContext.Add(__Syncfusion_JavaScript_Models_ButtonProperties);
                __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_34);
                __Syncfusion_JavaScript_Models_ButtonProperties.Width = (string)__tagHelperAttribute_9.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_9);
                __Syncfusion_JavaScript_Models_ButtonProperties.Text = (string)__tagHelperAttribute_35.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_35);
                __Syncfusion_JavaScript_Models_ButtonProperties.Click = (string)__tagHelperAttribute_36.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_36);
                await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
                if (!__tagHelperExecutionContext.Output.IsContentModified)
                {
                    await __tagHelperExecutionContext.SetOutputContentAsync();
                }
                Write(__tagHelperExecutionContext.Output);
                __tagHelperExecutionContext = __tagHelperScopeManager.End();
                EndContext();
                BeginContext(3868, 42, true);
                WriteLiteral("            \r\n        </div>\r\n    </div>\r\n");
                EndContext();
            }
                          );
            DefineSection("ScriptSection", async() => {
                BeginContext(3936, 4043, true);
                WriteLiteral(@"
    <script type=""text/javascript"">
        $(function () {
            ListboxObj = $('#SkillSelect').data(""ejListBox"");
            CheckedObj = $(""#Checks"").data(""ejButton"");
            UnCheckObj = $('#Unchecks').data(""ejButton"");
            $(""#sampleProperties"").ejPropertiesPanel();
            if (!ListboxObj.option('showCheckbox')) {
                CheckedObj.disable();
                UnCheckObj.disable();
            }
        });
        function add(e) {
            var target = $('#SkillSelect').data(""ejListBox"");
            var value = $(""#additem"").val() ;
            target.addItem(value);
        }

        function remove(e) {
            var target = $('#SkillSelect').data(""ejListBox"");
            target.removeSelectedItems();
        }
        function onEnableDiasableAll(args) {
            var target = $('#SkillSelect').data(""ejListBox"");
            if (args.isChecked){
                target.disable();
		$("".ctrllabel"").css(""opacity"",0.5);
		}		
      ");
                WriteLiteral(@"      else{
                target.enable();
		$("".ctrllabel"").css(""opacity"",1);
		}
        }

        function selects(e) {
            var target = $('#SkillSelect').data(""ejListBox"");
            var value = $(""#selects"").val();
            target.selectItemsByIndex(value);
        }
        function unselects(e) {
            var target = $('#SkillSelect').data(""ejListBox"");
            var value = $(""#unselects"").val();
            target.unselectItemsByIndex(value);
        }
        function disable(e) {
            var target = $('#SkillSelect').data(""ejListBox"");
            var value = $(""#disable"").val();
            if (value != """")
                target.disableItemsByIndices(value);
            else alert(""Please enter the item index"");
        }
        function enable(e) {
            var target = $('#SkillSelect').data(""ejListBox"");
            var value = $(""#enable"").val();
            if (value != """")
                target.enableItemsByIndices(value);
        ");
                WriteLiteral(@"    else alert(""Please enter the item index"");
        }
        function onShowHide(args) {
            ListboxObj = $('#SkillSelect').data(""ejListBox"");
            CheckedObj = $(""#Checks"").data(""ejButton"");
            UnCheckObj = $('#Unchecks').data(""ejButton"");
            SelectObj = $(""#selectitems"").data(""ejButton"");
            UnSelectObj = $('#unselectitems').data(""ejButton"");
            if (args.isChecked) {
                ListboxObj.option(""showCheckbox"", true);
                CheckedObj.enable();
                UnCheckObj.enable();
                SelectObj.disable();
                UnSelectObj.disable();
                $(""#unselects"").attr(""disabled"", ""true"");
                $(""#selects"").attr(""disabled"", ""true"");
                $(""#checks"").removeAttr(""disabled"");
                $(""#unchecks"").removeAttr(""disabled"");
            }
            else {
                ListboxObj.option(""showCheckbox"", false);
                CheckedObj.disable();
                U");
                WriteLiteral(@"nCheckObj.disable();
                SelectObj.enable();
                UnSelectObj.enable();
                $(""#unselects"").removeAttr(""disabled"");
                $(""#selects"").removeAttr(""disabled"");
                $(""#checks"").attr(""disabled"", ""true"");
                $(""#unchecks"").attr(""disabled"", ""true"");
            }
        }
        function checks(e) {
            var target = $('#SkillSelect').data(""ejListBox"");
            value = $(""#checks"").val();
            if (value != """") {
                target.checkItemsByIndices(value);
            }
            else alert(""Please enter the item index"");
        }
        function unchecks(e) {
            var target = $('#SkillSelect').data(""ejListBox"");
            value = $(""#unchecks"").val();
            if (value != """") {
                target.uncheckItemsByIndices(value);
            }
            else alert(""Please enter the item index"");
        }
    </script>
");
                EndContext();
            }
                          );
            DefineSection("StyleSection", async() => {
                BeginContext(8004, 235, true);
                WriteLiteral("\r\n    <style type=\"text/css\" class=\"cssStyles\">\r\n        .ctrllabel {\r\n            padding: 0px 0px 12px 3px;\r\n            font-weight: 600;\r\n        }\r\n\r\n        .e-ddl-popup {\r\n            margin: 0 auto;\r\n        }\r\n\r\n    </style>\r\n");
                EndContext();
            }
                          );
        }
Exemple #13
0
        #pragma warning disable 1998
        public async override global::System.Threading.Tasks.Task ExecuteAsync()
        {
            DefineSection("SampleHeading", async() => {
                BeginContext(23, 58, true);
                WriteLiteral("\r\n    <span class=\"sampleName\">ListBox / Checkboxes</span>");
                EndContext();
            }
                          );
            DefineSection("MetaTags", async() => {
                BeginContext(102, 190, true);
                WriteLiteral("\r\n    <meta name=\"description\" content=\"This example demonstrates how to select multiple items at a time and display their check-boxes with the Syncfusion ASP.NET Core ListBox component.\">\r\n");
                EndContext();
            }
                          );
            DefineSection("ControlsSection", async() => {
                BeginContext(320, 130, true);
                WriteLiteral("\r\n        <div class=\"control frame\">\r\n            <div class=\"ctrllabel\">\r\n                Select your skills</div>\r\n            ");
                EndContext();
                BeginContext(450, 175, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("ej-list-box", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "53041ccd3eca4f0fa6c333db3f2934eb", async() => {
                    BeginContext(546, 18, true);
                    WriteLiteral("\r\n                ");
                    EndContext();
                    BeginContext(564, 33, false);
                    __tagHelperExecutionContext = __tagHelperScopeManager.Begin("e-list-box-fields", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "5c94898b4b5c42a0a83719c5197eb25c", async() => {
                    }
                                                                                );
                    __Syncfusion_JavaScript_Models_ListBoxFields = CreateTagHelper <global::Syncfusion.JavaScript.Models.ListBoxFields>();
                    __tagHelperExecutionContext.Add(__Syncfusion_JavaScript_Models_ListBoxFields);
                    __Syncfusion_JavaScript_Models_ListBoxFields.Text = (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(597, 14, true);
                    WriteLiteral("\r\n            ");
                    EndContext();
                }
                                                                            );
                __Syncfusion_JavaScript_Models_ListBoxProperties = CreateTagHelper <global::Syncfusion.JavaScript.Models.ListBoxProperties>();
                __tagHelperExecutionContext.Add(__Syncfusion_JavaScript_Models_ListBoxProperties);
                __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_1);
#line 10 "D:\Samples_17.2.0.46\ASPNETCORE\samplebrowser_core_2_0\Views\ListBox\Checkbox.cshtml"
                __Syncfusion_JavaScript_Models_ListBoxProperties.DataSource = ViewBag.datasource;

#line default
#line hidden
                __tagHelperExecutionContext.AddTagHelperAttribute("datasource", __Syncfusion_JavaScript_Models_ListBoxProperties.DataSource, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
                __Syncfusion_JavaScript_Models_ListBoxProperties.Height = (string)__tagHelperAttribute_2.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_2);
#line 10 "D:\Samples_17.2.0.46\ASPNETCORE\samplebrowser_core_2_0\Views\ListBox\Checkbox.cshtml"
                __Syncfusion_JavaScript_Models_ListBoxProperties.ShowCheckbox = true;

#line default
#line hidden
                __tagHelperExecutionContext.AddTagHelperAttribute("show-checkbox", __Syncfusion_JavaScript_Models_ListBoxProperties.ShowCheckbox, 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(625, 31, true);
                WriteLiteral("           \r\n\r\n        </div>\r\n");
                EndContext();
            }
                          );
            DefineSection("PropertiesSection", async() => {
                BeginContext(686, 70, true);
                WriteLiteral("\r\n    <div class=\"row\">\r\n        <div class=\"col-md-12\">\r\n            ");
                EndContext();
                BeginContext(756, 129, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("ej-toggle-button", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "452607f35a5643a5ab5a89a77ba2e8d2", async() => {
                }
                                                                            );
                __Syncfusion_JavaScript_Models_ToggleButtonProperties = CreateTagHelper <global::Syncfusion.JavaScript.Models.ToggleButtonProperties>();
                __tagHelperExecutionContext.Add(__Syncfusion_JavaScript_Models_ToggleButtonProperties);
                __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_3);
                __Syncfusion_JavaScript_Models_ToggleButtonProperties.DefaultText = (string)__tagHelperAttribute_4.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_4);
                __Syncfusion_JavaScript_Models_ToggleButtonProperties.ActiveText = (string)__tagHelperAttribute_5.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_5);
                __Syncfusion_JavaScript_Models_ToggleButtonProperties.Width = (string)__tagHelperAttribute_6.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_6);
                __Syncfusion_JavaScript_Models_ToggleButtonProperties.Change = (string)__tagHelperAttribute_7.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_7);
                await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
                if (!__tagHelperExecutionContext.Output.IsContentModified)
                {
                    await __tagHelperExecutionContext.SetOutputContentAsync();
                }
                Write(__tagHelperExecutionContext.Output);
                __tagHelperExecutionContext = __tagHelperScopeManager.End();
                EndContext();
                BeginContext(885, 111, true);
                WriteLiteral("            \r\n        </div>\r\n    </div>\r\n     <div class=\"row\">\r\n        <div class=\"col-md-12\">\r\n            ");
                EndContext();
                BeginContext(996, 80, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("ej-button", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "c46ddf2cfebb40fb9c5fd3828308339a", async() => {
                }
                                                                            );
                __Syncfusion_JavaScript_Models_ButtonProperties = CreateTagHelper <global::Syncfusion.JavaScript.Models.ButtonProperties>();
                __tagHelperExecutionContext.Add(__Syncfusion_JavaScript_Models_ButtonProperties);
                __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_8);
                __Syncfusion_JavaScript_Models_ButtonProperties.Text = (string)__tagHelperAttribute_9.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_9);
                __Syncfusion_JavaScript_Models_ButtonProperties.Width = (string)__tagHelperAttribute_6.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_6);
                __Syncfusion_JavaScript_Models_ButtonProperties.Click = (string)__tagHelperAttribute_10.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_10);
                await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
                if (!__tagHelperExecutionContext.Output.IsContentModified)
                {
                    await __tagHelperExecutionContext.SetOutputContentAsync();
                }
                Write(__tagHelperExecutionContext.Output);
                __tagHelperExecutionContext = __tagHelperScopeManager.End();
                EndContext();
                BeginContext(1076, 110, true);
                WriteLiteral("            \r\n        </div>\r\n    </div>\r\n    <div class=\"row\">\r\n        <div class=\"col-md-12\">\r\n            ");
                EndContext();
                BeginContext(1186, 128, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("ej-toggle-button", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "d337517a2dea423888914a5c9e0b668e", async() => {
                }
                                                                            );
                __Syncfusion_JavaScript_Models_ToggleButtonProperties = CreateTagHelper <global::Syncfusion.JavaScript.Models.ToggleButtonProperties>();
                __tagHelperExecutionContext.Add(__Syncfusion_JavaScript_Models_ToggleButtonProperties);
                __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_11);
                __Syncfusion_JavaScript_Models_ToggleButtonProperties.DefaultText = (string)__tagHelperAttribute_12.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_12);
                __Syncfusion_JavaScript_Models_ToggleButtonProperties.ActiveText = (string)__tagHelperAttribute_13.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_13);
                __Syncfusion_JavaScript_Models_ToggleButtonProperties.Width = (string)__tagHelperAttribute_6.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_6);
                __Syncfusion_JavaScript_Models_ToggleButtonProperties.Change = (string)__tagHelperAttribute_14.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_14);
                await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
                if (!__tagHelperExecutionContext.Output.IsContentModified)
                {
                    await __tagHelperExecutionContext.SetOutputContentAsync();
                }
                Write(__tagHelperExecutionContext.Output);
                __tagHelperExecutionContext = __tagHelperScopeManager.End();
                EndContext();
                BeginContext(1314, 230, true);
                WriteLiteral("\r\n        </div>\r\n    </div>\r\n    <div id=\"resultarea\">\r\n    <span>CheckedItems</span>\r\n    <table id=\"resultdata\">\r\n        <tr>\r\n            <th>Index</></th>\r\n            <th>Text</th>\r\n        </tr>\r\n    </table>\r\n    </div>\r\n");
                EndContext();
            }
                          );
            DefineSection("ScriptSection", async() => {
                BeginContext(1570, 1840, true);
                WriteLiteral(@"
    <script type=""text/javascript"">
        var target;
        $(function () {
            $(""#sampleProperties"").ejPropertiesPanel();
        });
        function onCheckUncheckAll(args) {
            target = $('#skillsets').data(""ejListBox"");
            if (args.isChecked)
                target.checkAll();
            else
                target.uncheckAll();
        }
        function onShowHide(args) {
            target = $('#skillsets').data(""ejListBox"");
            ButtonObj = $(""#get"").data(""ejButton"");
            ToggleButtonObj = $(""#btnchkunchk"").data(""ejToggleButton"");
            if (args.isChecked) {
                target.option(""showCheckbox"", false);
                ButtonObj.disable();
                ToggleButtonObj.disable();
            }
            else {
                target.option(""showCheckbox"", true);
                ButtonObj.enable();
               ToggleButtonObj.enable();
            }
        }
        function GetcheckedIndices(e) {
     ");
                WriteLiteral(@"        target = $('#skillsets').data(""ejListBox"");
             var alertMsg = """";
             var checkedItems = target.getCheckedItems();
             if (checkedItems.length) {
                 $(checkedItems).each(function (index, ele) {
                     alertMsg += ""<tr class='checkedItems'><td>"" + ele.index + ""</td><td>"" + ele.value + ""</td></tr>"";
                     $("".checkedItems"").remove();
                     $(""#resultdata"").append(alertMsg);
                 });                 
             }
             else {
                 $("".checkedItems"").remove();
                 $(""#resultarea br"").remove();
                 $(""#resultarea"").append(""<br /><span class='checkedItems'>No items are checked</span>"");
             }                 
        }

    </script>
");
                EndContext();
            }
                          );
            DefineSection("StyleSection", async() => {
                BeginContext(3435, 348, true);
                WriteLiteral(@"
    <style type=""text/css"" class=""cssStyles"">
        .ctrllabel {
            padding: 0px 0px 12px 3px;
            font-weight: 600;
        }

        .e-ddl-popup {
            margin: 0 auto;
        }
        #resultdata{
            width:100%;
        }
        th{
            width:50%;
        }
       
    </style>
");
                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\">ListBox / Keyboard Interaction</span>");
                EndContext();
            }
                          );
            DefineSection("MetaTags", async() => {
                BeginContext(112, 174, true);
                WriteLiteral("\r\n    <meta name=\"description\" content=\"This example demonstrates how to access the Syncfusion ASP.NET Core ListBox component functionalities using keyboard interactions.\">\r\n");
                EndContext();
            }
                          );
            DefineSection("ControlsSection", async() => {
                BeginContext(314, 131, true);
                WriteLiteral("\r\n        <div class=\"control frame\">\r\n            <div class=\"ctrllabel\">\r\n                Select a font style</div>\r\n            ");
                EndContext();
                BeginContext(445, 152, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("ej-list-box", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "8ffa3c3c41ef4c1bb2e0331747b4a948", async() => {
                    BeginContext(505, 18, true);
                    WriteLiteral("\r\n                ");
                    EndContext();
                    BeginContext(523, 46, false);
                    __tagHelperExecutionContext = __tagHelperScopeManager.Begin("e-list-box-fields", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "65765c4658ce4d90bf91b7c5d3a3b748", async() => {
                    }
                                                                                );
                    __Syncfusion_JavaScript_Models_ListBoxFields = CreateTagHelper <global::Syncfusion.JavaScript.Models.ListBoxFields>();
                    __tagHelperExecutionContext.Add(__Syncfusion_JavaScript_Models_ListBoxFields);
                    __Syncfusion_JavaScript_Models_ListBoxFields.Text = (string)__tagHelperAttribute_0.Value;
                    __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_0);
                    __Syncfusion_JavaScript_Models_ListBoxFields.Value = (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(569, 14, true);
                    WriteLiteral("\r\n            ");
                    EndContext();
                }
                                                                            );
                __Syncfusion_JavaScript_Models_ListBoxProperties = CreateTagHelper <global::Syncfusion.JavaScript.Models.ListBoxProperties>();
                __tagHelperExecutionContext.Add(__Syncfusion_JavaScript_Models_ListBoxProperties);
                __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_2);
#line 10 "D:\Samples_17.2.0.46\ASPNETCORE\samplebrowser_core_2_0\Views\ListBox\KeyboardInteraction.cshtml"
                __Syncfusion_JavaScript_Models_ListBoxProperties.DataSource = ViewBag.datasource;

#line default
#line hidden
                __tagHelperExecutionContext.AddTagHelperAttribute("datasource", __Syncfusion_JavaScript_Models_ListBoxProperties.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(597, 30, true);
                WriteLiteral("            \r\n        </div>\r\n");
                EndContext();
            }
                          );
            DefineSection("PropertiesSection", async() => {
                BeginContext(657, 1457, 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"">
            Navigates upwards
        </div>
    </div>
    <div class=""row"">
        <div class=""col-md-3"">
         Down
        </div>
        <div class=""col-md-3"">
            Navigates downwards
        </div>
    </div>
    <div class=""row"">
        <div class=""col-md-3"">
         Left
        </div>
        <div class=""col-md-3"">
            Navigates upwards
        </div>
    </div>
    <div class=""row"">
        <div class=""col-md-3"">
         Right
        </div>
        <div class=""col-md-3"">
            Navigates downwards
        </div>
    </div>
    <div class=""row"">
        <div class=""col-md-3"">
         Home
        </div>
        <div class=""col-md-3"">
           ");
                WriteLiteral(@" Navigates to the starting item
        </div>
    </div>
    <div class=""row"">
        <div class=""col-md-3"">
         End
        </div>
        <div class=""col-md-3"">
            Navigates to the ending item
        </div>
    </div>
    <div class=""row"">
        <div class=""col-md-3"">
         Enter
        </div>
        <div class=""col-md-3"">
            Selects the focused item
        </div>
    </div>
");
                EndContext();
            }
                          );
            DefineSection("ScriptSection", async() => {
                BeginContext(2140, 537, true);
                WriteLiteral(@"
    <script type=""text/javascript"">
        var target;
        $(function () {
            //Control focus key
            $(document).on(""keydown"", function (e) {
                if (e.altKey && e.keyCode === 74) { // j- key code.
                    var target = $('#fontnames').data(""ejListBox"");
                    target.selectItemByIndex(0);
                    $(""#fontnames_container"").focus();
                }
            });
            $(""#sampleProperties"").ejPropertiesPanel();
        });
    </script>
");
                EndContext();
            }
                          );
            DefineSection("StyleSection", async() => {
                BeginContext(2702, 235, true);
                WriteLiteral("\r\n    <style type=\"text/css\" class=\"cssStyles\">\r\n        .ctrllabel {\r\n            padding: 5px 0px 12px 3px;\r\n            font-weight: 600;\r\n        }\r\n\r\n        .e-ddl-popup {\r\n            margin: 0 auto;\r\n        }\r\n\r\n    </style>\r\n");
                EndContext();
            }
                          );
        }
Exemple #15
0
        #pragma warning disable 1998
        public async override global::System.Threading.Tasks.Task ExecuteAsync()
        {
            DefineSection("SampleHeading", async() => {
                BeginContext(23, 55, true);
                WriteLiteral("\r\n    <span class=\"sampleName\">ListBox / Methods</span>");
                EndContext();
            }
                          );
            DefineSection("MetaTags", async() => {
                BeginContext(99, 186, true);
                WriteLiteral("\r\n    <meta name=\"description\" content=\"This example demonstrates how to enable or disable, add or remove, and select or unselect the Syncfusion ASP.NET Core ListBox component items.\">\r\n");
                EndContext();
            }
                          );
            DefineSection("ControlsSection", async() => {
                BeginContext(313, 120, true);
                WriteLiteral("\r\n    <div class=\"control frame\">\r\n        <div class=\"ctrllabel\">\r\n            Select a skill\r\n        </div>\r\n        ");
                EndContext();
                BeginContext(433, 175, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("ej-list-box", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "2f24cc32ad77447fb4ba2ad1cbb532c0", async() => {
                    BeginContext(524, 14, true);
                    WriteLiteral("\r\n            ");
                    EndContext();
                    BeginContext(538, 46, false);
                    __tagHelperExecutionContext = __tagHelperScopeManager.Begin("e-list-box-fields", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "75a3aa7e53df43fa9f4ec4b278bcbd02", async() => {
                    }
                                                                                );
                    __Syncfusion_JavaScript_Models_ListBoxFields = CreateTagHelper <global::Syncfusion.JavaScript.Models.ListBoxFields>();
                    __tagHelperExecutionContext.Add(__Syncfusion_JavaScript_Models_ListBoxFields);
                    __Syncfusion_JavaScript_Models_ListBoxFields.Text = (string)__tagHelperAttribute_0.Value;
                    __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_0);
                    __Syncfusion_JavaScript_Models_ListBoxFields.Value = (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(584, 10, true);
                    WriteLiteral("\r\n        ");
                    EndContext();
                }
                                                                            );
                __Syncfusion_JavaScript_Models_ListBoxProperties = CreateTagHelper <global::Syncfusion.JavaScript.Models.ListBoxProperties>();
                __tagHelperExecutionContext.Add(__Syncfusion_JavaScript_Models_ListBoxProperties);
                __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_2);
#line 11 "D:\Samples_17.2.0.46\ASPNETCORE\samplebrowser_core_2_0\Views\ListBox\Methods.cshtml"
                __Syncfusion_JavaScript_Models_ListBoxProperties.DataSource = ViewBag.datasource;

#line default
#line hidden
                __tagHelperExecutionContext.AddTagHelperAttribute("datasource", __Syncfusion_JavaScript_Models_ListBoxProperties.DataSource, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
#line 11 "D:\Samples_17.2.0.46\ASPNETCORE\samplebrowser_core_2_0\Views\ListBox\Methods.cshtml"
                __Syncfusion_JavaScript_Models_ListBoxProperties.AllowMultiSelection = true;

#line default
#line hidden
                __tagHelperExecutionContext.AddTagHelperAttribute("allow-multi-selection", __Syncfusion_JavaScript_Models_ListBoxProperties.AllowMultiSelection, 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(608, 22, true);
                WriteLiteral("        \r\n    </div>\r\n");
                EndContext();
            }
                          );
            DefineSection("PropertiesSection", async() => {
                BeginContext(660, 125, true);
                WriteLiteral("\r\n    <div class=\"row\">\r\n        <div class=\"col-md-3\">Enable/Disable All</div>\r\n        <div class=\"col-md-3\">\r\n            ");
                EndContext();
                BeginContext(785, 118, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("ej-toggle-button", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "e10bb7d6a6ad4a8f9cab1c6eb67589b5", async() => {
                }
                                                                            );
                __Syncfusion_JavaScript_Models_ToggleButtonProperties = CreateTagHelper <global::Syncfusion.JavaScript.Models.ToggleButtonProperties>();
                __tagHelperExecutionContext.Add(__Syncfusion_JavaScript_Models_ToggleButtonProperties);
                __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_3);
                __Syncfusion_JavaScript_Models_ToggleButtonProperties.Width = (string)__tagHelperAttribute_4.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_4);
                __Syncfusion_JavaScript_Models_ToggleButtonProperties.DefaultText = (string)__tagHelperAttribute_5.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_5);
                __Syncfusion_JavaScript_Models_ToggleButtonProperties.ActiveText = (string)__tagHelperAttribute_6.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_6);
                __Syncfusion_JavaScript_Models_ToggleButtonProperties.Click = (string)__tagHelperAttribute_7.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_7);
                await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
                if (!__tagHelperExecutionContext.Output.IsContentModified)
                {
                    await __tagHelperExecutionContext.SetOutputContentAsync();
                }
                Write(__tagHelperExecutionContext.Output);
                __tagHelperExecutionContext = __tagHelperScopeManager.End();
                EndContext();
                BeginContext(903, 158, true);
                WriteLiteral("            \r\n        </div>\r\n    </div>\r\n    <div class=\"row\">\r\n        <div class=\"col-md-3\">Remove Item</div>\r\n        <div class=\"col-md-3\">\r\n            ");
                EndContext();
                BeginContext(1061, 76, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("ej-button", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "ffcdd95d9fa3459c8c9c10276c1fd04d", async() => {
                }
                                                                            );
                __Syncfusion_JavaScript_Models_ButtonProperties = CreateTagHelper <global::Syncfusion.JavaScript.Models.ButtonProperties>();
                __tagHelperExecutionContext.Add(__Syncfusion_JavaScript_Models_ButtonProperties);
                __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_8);
                __Syncfusion_JavaScript_Models_ButtonProperties.Width = (string)__tagHelperAttribute_9.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_9);
                __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(1137, 260, true);
                WriteLiteral(@"            
        </div>
    </div>

    <div class=""row"">
        <div class=""col-md-3"">
            <input id=""additem"" style=""width: 95px"" class=""ejinputtext"" type=""text"" value=""Java"" />
        </div>
        <div class=""col-md-3"">
            ");
                EndContext();
                BeginContext(1397, 67, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("ej-button", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "6014636513e14f879b811cde1561f86f", async() => {
                }
                                                                            );
                __Syncfusion_JavaScript_Models_ButtonProperties = CreateTagHelper <global::Syncfusion.JavaScript.Models.ButtonProperties>();
                __tagHelperExecutionContext.Add(__Syncfusion_JavaScript_Models_ButtonProperties);
                __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_12);
                __Syncfusion_JavaScript_Models_ButtonProperties.Width = (string)__tagHelperAttribute_9.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_9);
                __Syncfusion_JavaScript_Models_ButtonProperties.Text = (string)__tagHelperAttribute_13.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_13);
                __Syncfusion_JavaScript_Models_ButtonProperties.Click = (string)__tagHelperAttribute_14.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_14);
                await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
                if (!__tagHelperExecutionContext.Output.IsContentModified)
                {
                    await __tagHelperExecutionContext.SetOutputContentAsync();
                }
                Write(__tagHelperExecutionContext.Output);
                __tagHelperExecutionContext = __tagHelperScopeManager.End();
                EndContext();
                BeginContext(1464, 263, true);
                WriteLiteral(@"            
        </div>
    </div>



    <div class=""row"">
        <div class=""col-md-3"">
            <input id=""selects"" style=""width: 95px"" class=""ejinputtext"" type=""text"" value=""3,4"" />
        </div>
        <div class=""col-md-3"">
            ");
                EndContext();
                BeginContext(1727, 91, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("ej-button", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "f41a7e2f6c8847b2b534082519cb6102", async() => {
                }
                                                                            );
                __Syncfusion_JavaScript_Models_ButtonProperties = CreateTagHelper <global::Syncfusion.JavaScript.Models.ButtonProperties>();
                __tagHelperExecutionContext.Add(__Syncfusion_JavaScript_Models_ButtonProperties);
                __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_15);
                __Syncfusion_JavaScript_Models_ButtonProperties.Width = (string)__tagHelperAttribute_9.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_9);
                __Syncfusion_JavaScript_Models_ButtonProperties.Text = (string)__tagHelperAttribute_16.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_16);
                __Syncfusion_JavaScript_Models_ButtonProperties.Click = (string)__tagHelperAttribute_17.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_17);
                await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
                if (!__tagHelperExecutionContext.Output.IsContentModified)
                {
                    await __tagHelperExecutionContext.SetOutputContentAsync();
                }
                Write(__tagHelperExecutionContext.Output);
                __tagHelperExecutionContext = __tagHelperScopeManager.End();
                EndContext();
                BeginContext(1818, 271, true);
                WriteLiteral(@"            
        </div>
    </div>
    <br />
    <div class=""row"">
        <div class=""col-md-3"">
            <input id=""unselects"" style=""width: 95px"" class=""ejinputtext"" type=""text"" value=""3,4"" />
        </div>
        <div class=""col-md-3"">
            ");
                EndContext();
                BeginContext(2089, 97, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("ej-button", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "22bfee9040e04291a21b80b19943fe91", async() => {
                }
                                                                            );
                __Syncfusion_JavaScript_Models_ButtonProperties = CreateTagHelper <global::Syncfusion.JavaScript.Models.ButtonProperties>();
                __tagHelperExecutionContext.Add(__Syncfusion_JavaScript_Models_ButtonProperties);
                __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_18);
                __Syncfusion_JavaScript_Models_ButtonProperties.Width = (string)__tagHelperAttribute_9.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_9);
                __Syncfusion_JavaScript_Models_ButtonProperties.Text = (string)__tagHelperAttribute_19.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_19);
                __Syncfusion_JavaScript_Models_ButtonProperties.Click = (string)__tagHelperAttribute_20.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_20);
                await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
                if (!__tagHelperExecutionContext.Output.IsContentModified)
                {
                    await __tagHelperExecutionContext.SetOutputContentAsync();
                }
                Write(__tagHelperExecutionContext.Output);
                __tagHelperExecutionContext = __tagHelperScopeManager.End();
                EndContext();
                BeginContext(2186, 175, true);
                WriteLiteral("           \r\n        </div>\r\n    </div>\r\n    <br>\r\n    <div class=\"row\">\r\n        <div class=\"col-md-3\">CheckBox Visibility</div>\r\n        <div class=\"col-md-3\">\r\n            ");
                EndContext();
                BeginContext(2361, 133, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("ej-toggle-button", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "92750e2b776e4bf1aaf4798138afe8fc", async() => {
                }
                                                                            );
                __Syncfusion_JavaScript_Models_ToggleButtonProperties = CreateTagHelper <global::Syncfusion.JavaScript.Models.ToggleButtonProperties>();
                __tagHelperExecutionContext.Add(__Syncfusion_JavaScript_Models_ToggleButtonProperties);
                __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_21);
#line 62 "D:\Samples_17.2.0.46\ASPNETCORE\samplebrowser_core_2_0\Views\ListBox\Methods.cshtml"
                __Syncfusion_JavaScript_Models_ToggleButtonProperties.Size = ButtonSize.Normal;

#line default
#line hidden
                __tagHelperExecutionContext.AddTagHelperAttribute("size", __Syncfusion_JavaScript_Models_ToggleButtonProperties.Size, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
                __Syncfusion_JavaScript_Models_ToggleButtonProperties.Width = (string)__tagHelperAttribute_9.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_9);
                __Syncfusion_JavaScript_Models_ToggleButtonProperties.DefaultText = (string)__tagHelperAttribute_22.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_22);
                __Syncfusion_JavaScript_Models_ToggleButtonProperties.ActiveText = (string)__tagHelperAttribute_23.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_23);
                __Syncfusion_JavaScript_Models_ToggleButtonProperties.Click = (string)__tagHelperAttribute_24.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_24);
                await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
                if (!__tagHelperExecutionContext.Output.IsContentModified)
                {
                    await __tagHelperExecutionContext.SetOutputContentAsync();
                }
                Write(__tagHelperExecutionContext.Output);
                __tagHelperExecutionContext = __tagHelperScopeManager.End();
                EndContext();
                BeginContext(2494, 257, true);
                WriteLiteral(@"            

        </div>
    </div>
    <div class=""row"">
        <div class=""col-md-3"">
            <input id=""checks"" style=""width: 95px"" class=""ejinputtext"" type=""text"" value=""3,4"" disabled /></div>
        <div class=""col-md-3"">
            ");
                EndContext();
                BeginContext(2751, 84, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("ej-button", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "f0cb611831ef4c3f85bd2691b09a4a85", async() => {
                }
                                                                            );
                __Syncfusion_JavaScript_Models_ButtonProperties = CreateTagHelper <global::Syncfusion.JavaScript.Models.ButtonProperties>();
                __tagHelperExecutionContext.Add(__Syncfusion_JavaScript_Models_ButtonProperties);
                __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_25);
                __Syncfusion_JavaScript_Models_ButtonProperties.Width = (string)__tagHelperAttribute_9.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_9);
                __Syncfusion_JavaScript_Models_ButtonProperties.Text = (string)__tagHelperAttribute_26.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_26);
                __Syncfusion_JavaScript_Models_ButtonProperties.Click = (string)__tagHelperAttribute_27.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_27);
                await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
                if (!__tagHelperExecutionContext.Output.IsContentModified)
                {
                    await __tagHelperExecutionContext.SetOutputContentAsync();
                }
                Write(__tagHelperExecutionContext.Output);
                __tagHelperExecutionContext = __tagHelperScopeManager.End();
                EndContext();
                BeginContext(2835, 257, true);
                WriteLiteral(@"
        </div>
    </div>
    <br />
    <div class=""row"">
        <div class=""col-md-3"">
            <input id=""unchecks"" style=""width: 95px"" class=""ejinputtext"" type=""text"" value=""3,4"" disabled /></div>
        <div class=""col-md-3"">
            ");
                EndContext();
                BeginContext(3092, 90, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("ej-button", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "61350e2cbbe74ee19633ad8733e8db83", async() => {
                }
                                                                            );
                __Syncfusion_JavaScript_Models_ButtonProperties = CreateTagHelper <global::Syncfusion.JavaScript.Models.ButtonProperties>();
                __tagHelperExecutionContext.Add(__Syncfusion_JavaScript_Models_ButtonProperties);
                __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_28);
                __Syncfusion_JavaScript_Models_ButtonProperties.Width = (string)__tagHelperAttribute_9.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_9);
                __Syncfusion_JavaScript_Models_ButtonProperties.Text = (string)__tagHelperAttribute_29.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_29);
                __Syncfusion_JavaScript_Models_ButtonProperties.Click = (string)__tagHelperAttribute_30.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_30);
                await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
                if (!__tagHelperExecutionContext.Output.IsContentModified)
                {
                    await __tagHelperExecutionContext.SetOutputContentAsync();
                }
                Write(__tagHelperExecutionContext.Output);
                __tagHelperExecutionContext = __tagHelperScopeManager.End();
                EndContext();
                BeginContext(3182, 247, true);
                WriteLiteral("\r\n        </div>\r\n    </div>\r\n    <div class=\"row\">\r\n        <div class=\"col-md-3\">\r\n            <input id=\"disable\" style=\"width: 95px\" class=\"ejinputtext\" type=\"text\" value=\"2,4,6\" />\r\n        </div>\r\n        <div class=\"col-md-3\">\r\n            ");
                EndContext();
                BeginContext(3429, 93, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("ej-button", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "f5f6bbdd53fa4f85a195c84afc46e15b", async() => {
                }
                                                                            );
                __Syncfusion_JavaScript_Models_ButtonProperties = CreateTagHelper <global::Syncfusion.JavaScript.Models.ButtonProperties>();
                __tagHelperExecutionContext.Add(__Syncfusion_JavaScript_Models_ButtonProperties);
                __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_31);
                __Syncfusion_JavaScript_Models_ButtonProperties.Width = (string)__tagHelperAttribute_9.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_9);
                __Syncfusion_JavaScript_Models_ButtonProperties.Text = (string)__tagHelperAttribute_32.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_32);
                __Syncfusion_JavaScript_Models_ButtonProperties.Click = (string)__tagHelperAttribute_33.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_33);
                await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
                if (!__tagHelperExecutionContext.Output.IsContentModified)
                {
                    await __tagHelperExecutionContext.SetOutputContentAsync();
                }
                Write(__tagHelperExecutionContext.Output);
                __tagHelperExecutionContext = __tagHelperScopeManager.End();
                EndContext();
                BeginContext(3522, 256, true);
                WriteLiteral(@"
        </div>
    </div>
    <br />
    <div class=""row"">
        <div class=""col-md-3"">
            <input id=""enable"" style=""width: 95px"" class=""ejinputtext"" type=""text"" value=""2,4"" />
        </div>
        <div class=""col-md-3"">
            ");
                EndContext();
                BeginContext(3778, 90, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("ej-button", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "8746273d390a404a84df3dcdc7329271", async() => {
                }
                                                                            );
                __Syncfusion_JavaScript_Models_ButtonProperties = CreateTagHelper <global::Syncfusion.JavaScript.Models.ButtonProperties>();
                __tagHelperExecutionContext.Add(__Syncfusion_JavaScript_Models_ButtonProperties);
                __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_34);
                __Syncfusion_JavaScript_Models_ButtonProperties.Width = (string)__tagHelperAttribute_9.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_9);
                __Syncfusion_JavaScript_Models_ButtonProperties.Text = (string)__tagHelperAttribute_35.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_35);
                __Syncfusion_JavaScript_Models_ButtonProperties.Click = (string)__tagHelperAttribute_36.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_36);
                await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
                if (!__tagHelperExecutionContext.Output.IsContentModified)
                {
                    await __tagHelperExecutionContext.SetOutputContentAsync();
                }
                Write(__tagHelperExecutionContext.Output);
                __tagHelperExecutionContext = __tagHelperScopeManager.End();
                EndContext();
                BeginContext(3868, 42, true);
                WriteLiteral("            \r\n        </div>\r\n    </div>\r\n");
                EndContext();
            }
                          );
            DefineSection("ScriptSection", async() => {
                BeginContext(3936, 4043, true);
                WriteLiteral(@"
    <script type=""text/javascript"">
        $(function () {
            ListboxObj = $('#SkillSelect').data(""ejListBox"");
            CheckedObj = $(""#Checks"").data(""ejButton"");
            UnCheckObj = $('#Unchecks').data(""ejButton"");
            $(""#sampleProperties"").ejPropertiesPanel();
            if (!ListboxObj.option('showCheckbox')) {
                CheckedObj.disable();
                UnCheckObj.disable();
            }
        });
        function add(e) {
            var target = $('#SkillSelect').data(""ejListBox"");
            var value = $(""#additem"").val() ;
            target.addItem(value);
        }

        function remove(e) {
            var target = $('#SkillSelect').data(""ejListBox"");
            target.removeSelectedItems();
        }
        function onEnableDiasableAll(args) {
            var target = $('#SkillSelect').data(""ejListBox"");
            if (args.isChecked){
                target.disable();
		$("".ctrllabel"").css(""opacity"",0.5);
		}		
      ");
                WriteLiteral(@"      else{
                target.enable();
		$("".ctrllabel"").css(""opacity"",1);
		}
        }

        function selects(e) {
            var target = $('#SkillSelect').data(""ejListBox"");
            var value = $(""#selects"").val();
            target.selectItemsByIndex(value);
        }
        function unselects(e) {
            var target = $('#SkillSelect').data(""ejListBox"");
            var value = $(""#unselects"").val();
            target.unselectItemsByIndex(value);
        }
        function disable(e) {
            var target = $('#SkillSelect').data(""ejListBox"");
            var value = $(""#disable"").val();
            if (value != """")
                target.disableItemsByIndices(value);
            else alert(""Please enter the item index"");
        }
        function enable(e) {
            var target = $('#SkillSelect').data(""ejListBox"");
            var value = $(""#enable"").val();
            if (value != """")
                target.enableItemsByIndices(value);
        ");
                WriteLiteral(@"    else alert(""Please enter the item index"");
        }
        function onShowHide(args) {
            ListboxObj = $('#SkillSelect').data(""ejListBox"");
            CheckedObj = $(""#Checks"").data(""ejButton"");
            UnCheckObj = $('#Unchecks').data(""ejButton"");
            SelectObj = $(""#selectitems"").data(""ejButton"");
            UnSelectObj = $('#unselectitems').data(""ejButton"");
            if (args.isChecked) {
                ListboxObj.option(""showCheckbox"", true);
                CheckedObj.enable();
                UnCheckObj.enable();
                SelectObj.disable();
                UnSelectObj.disable();
                $(""#unselects"").attr(""disabled"", ""true"");
                $(""#selects"").attr(""disabled"", ""true"");
                $(""#checks"").removeAttr(""disabled"");
                $(""#unchecks"").removeAttr(""disabled"");
            }
            else {
                ListboxObj.option(""showCheckbox"", false);
                CheckedObj.disable();
                U");
                WriteLiteral(@"nCheckObj.disable();
                SelectObj.enable();
                UnSelectObj.enable();
                $(""#unselects"").removeAttr(""disabled"");
                $(""#selects"").removeAttr(""disabled"");
                $(""#checks"").attr(""disabled"", ""true"");
                $(""#unchecks"").attr(""disabled"", ""true"");
            }
        }
        function checks(e) {
            var target = $('#SkillSelect').data(""ejListBox"");
            value = $(""#checks"").val();
            if (value != """") {
                target.checkItemsByIndices(value);
            }
            else alert(""Please enter the item index"");
        }
        function unchecks(e) {
            var target = $('#SkillSelect').data(""ejListBox"");
            value = $(""#unchecks"").val();
            if (value != """") {
                target.uncheckItemsByIndices(value);
            }
            else alert(""Please enter the item index"");
        }
    </script>
");
                EndContext();
            }
                          );
            DefineSection("StyleSection", async() => {
                BeginContext(8004, 235, true);
                WriteLiteral("\r\n    <style type=\"text/css\" class=\"cssStyles\">\r\n        .ctrllabel {\r\n            padding: 0px 0px 12px 3px;\r\n            font-weight: 600;\r\n        }\r\n\r\n        .e-ddl-popup {\r\n            margin: 0 auto;\r\n        }\r\n\r\n    </style>\r\n");
                EndContext();
            }
                          );
        }