#pragma checksum "C:\Users\alestoya\Desktop\New folder (4)\CascadingComboBox_Demo\Views\Home\Index.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "6897024593f9aed57414e6136f0d68a8b6c8be79"
// <auto-generated/>
#pragma warning disable 1591
[assembly: global::Microsoft.AspNetCore.Razor.Hosting.RazorCompiledItemAttribute(typeof(AspNetCore.Views_Home_Index), @"mvc.1.0.view", @"/Views/Home/Index.cshtml")]
namespace AspNetCore
{
    #line hidden
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Threading.Tasks;
    using Microsoft.AspNetCore.Mvc;
    using Microsoft.AspNetCore.Mvc.Rendering;
    using Microsoft.AspNetCore.Mvc.ViewFeatures;
#nullable restore
#line 1 "C:\Users\alestoya\Desktop\New folder (4)\CascadingComboBox_Demo\Views\_ViewImports.cshtml"
using CascadingComboBox_Demo;

#line default
#line hidden
#nullable disable
#nullable restore
#line 2 "C:\Users\alestoya\Desktop\New folder (4)\CascadingComboBox_Demo\Views\_ViewImports.cshtml"
using CascadingComboBox_Demo.Models;

#line default
#line hidden
#nullable disable
#nullable restore
#line 3 "C:\Users\alestoya\Desktop\New folder (4)\CascadingComboBox_Demo\Views\_ViewImports.cshtml"
using Kendo.Mvc.UI;

#line default
#line hidden
#nullable disable
    [global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"6897024593f9aed57414e6136f0d68a8b6c8be79", @"/Views/Home/Index.cshtml")]
    [global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"1440daed17137555426921a8e4bab46137be09fc", @"/Views/_ViewImports.cshtml")]
    public class Views_Home_Index : global::Microsoft.AspNetCore.Mvc.Razor.RazorPage<StoreViewModel>
    {
        #pragma warning disable 1998
        public async override global::System.Threading.Tasks.Task ExecuteAsync()
        {
#nullable restore
#line 2 "C:\Users\alestoya\Desktop\New folder (4)\CascadingComboBox_Demo\Views\Home\Index.cshtml"
  
    ViewData["Title"] = "Home Page";

#line default
#line hidden
#nullable disable
            WriteLiteral("\r\n<h3>Categories</h3>\r\n");
#nullable restore
#line 7 "C:\Users\alestoya\Desktop\New folder (4)\CascadingComboBox_Demo\Views\Home\Index.cshtml"
Write(Html.Kendo().ComboBoxFor(m=>m.CategoryID)
              .HtmlAttributes(new { style = "width:100%;" })
              .Placeholder("Select category...")
              .DataTextField("CategoryName")
              .DataValueField("CategoryID")
              .Filter(FilterType.Contains)
              .DataSource(source =>
                {
                    source.Read(read =>
                    {
                        read.Action("GetCategories", "Home");
                  });
              })
);

#line default
#line hidden
#nullable disable
            WriteLiteral("\r\n<h3>Products</h3>\r\n");
#nullable restore
#line 22 "C:\Users\alestoya\Desktop\New folder (4)\CascadingComboBox_Demo\Views\Home\Index.cshtml"
Write(Html.Kendo().ComboBoxFor(m=>m.ProductID)
        .Placeholder("Select product...")
        .HtmlAttributes(new { style = "width:100%;" })
        .DataValueField("ProductID")
        .DataTextField("ProductName")
        .Filter(FilterType.Contains)
        .Enable(false)
        .DataSource(source =>
        {
            source.Read(read =>
            {
                read.Action("GetCascadeProducts", "Home")
                .Data("filterProducts");
            })
            .ServerFiltering(true);
        })
        .CascadeFrom("CategoryID")
);

#line default
#line hidden
#nullable disable
            WriteLiteral("\r\n \r\n<h3>Orders</h3>\r\n");
#nullable restore
#line 42 "C:\Users\alestoya\Desktop\New folder (4)\CascadingComboBox_Demo\Views\Home\Index.cshtml"
Write(Html.Kendo().ComboBoxFor(m=>m.OrderID)
      .HtmlAttributes(new { style = "width:100%;" })
      .Placeholder("Select order...")
      .DataTextField("ShipCity")
      .DataValueField("OrderID")
      .Filter(FilterType.Contains)
      .Enable(false)
      .DataSource(source =>
       {
          source.Read(read =>
          {
              read.Action("GetCascadeOrders", "Home")
                  .Data("filterOrders");
          })
          .ServerFiltering(true);
      })
      .AutoBind(false)
      .CascadeFrom("ProductID")
);

#line default
#line hidden
#nullable disable
            WriteLiteral(@"
<script>
    function filterProducts() {
        return {
            categories: $(""#CategoryID"").val(),
            productFilter: $(""#ProductID"").data(""kendoComboBox"").input.val()
        };
    }
    function filterOrders() {
        return {
            products: $(""#ProductID"").val(),
            orderFilter: $(""#OrderID"").data(""kendoComboBox"").input.val()
        };
    }
</script>");
        }
        #pragma warning restore 1998
        [global::Microsoft.AspNetCore.Mvc.Razor.Internal.RazorInjectAttribute]
        public global::Microsoft.AspNetCore.Mvc.ViewFeatures.IModelExpressionProvider ModelExpressionProvider { get; private set; }
        [global::Microsoft.AspNetCore.Mvc.Razor.Internal.RazorInjectAttribute]
        public global::Microsoft.AspNetCore.Mvc.IUrlHelper Url { get; private set; }
        [global::Microsoft.AspNetCore.Mvc.Razor.Internal.RazorInjectAttribute]
        public global::Microsoft.AspNetCore.Mvc.IViewComponentHelper Component { get; private set; }
        [global::Microsoft.AspNetCore.Mvc.Razor.Internal.RazorInjectAttribute]
        public global::Microsoft.AspNetCore.Mvc.Rendering.IJsonHelper Json { get; private set; }
        [global::Microsoft.AspNetCore.Mvc.Razor.Internal.RazorInjectAttribute]
        public global::Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper<StoreViewModel> Html { get; private set; }
    }
}
#pragma warning restore 1591
