#pragma checksum "C:\KendoRepo\ui-for-aspnet-core-examples\grid\razor-pages-crud\src\Pages\Index.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "c95c4b7348855972f87e65f5c1ad0cd6e4033995"
// <auto-generated/>
#pragma warning disable 1591
[assembly: global::Microsoft.AspNetCore.Razor.Hosting.RazorCompiledItemAttribute(typeof(GridRazorPagesApp.Pages.Pages_Index), @"mvc.1.0.razor-page", @"/Pages/Index.cshtml")]
[assembly:global::Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure.RazorPageAttribute(@"/Pages/Index.cshtml", typeof(GridRazorPagesApp.Pages.Pages_Index), null)]
namespace GridRazorPagesApp.Pages
{
    #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;
#line 1 "C:\KendoRepo\ui-for-aspnet-core-examples\grid\razor-pages-crud\src\Pages\_ViewImports.cshtml"
using GridRazorPagesApp;

#line default
#line hidden
#line 8 "C:\KendoRepo\ui-for-aspnet-core-examples\grid\razor-pages-crud\src\Pages\Index.cshtml"
using Kendo.Mvc.UI;

#line default
#line hidden
#line 7 "C:\KendoRepo\ui-for-aspnet-core-examples\grid\razor-pages-crud\src\Pages\Index.cshtml"
using GridRazorPagesApp.Data;

#line default
#line hidden
    [global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"c95c4b7348855972f87e65f5c1ad0cd6e4033995", @"/Pages/Index.cshtml")]
    [global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"f0701f2dd92568c098cbeca9a0ecaed9b594d5c8", @"/Pages/_ViewImports.cshtml")]
    public class Pages_Index : global::Microsoft.AspNetCore.Mvc.RazorPages.Page
    {
        #pragma warning disable 1998
        public async override global::System.Threading.Tasks.Task ExecuteAsync()
        {
#line 3 "C:\KendoRepo\ui-for-aspnet-core-examples\grid\razor-pages-crud\src\Pages\Index.cshtml"
  
    ViewData["Title"] = "Home page";

#line default
#line hidden
            BeginContext(71, 2, true);
            WriteLiteral("\r\n");
            EndContext();
            BeginContext(125, 2, true);
            WriteLiteral("\r\n");
            EndContext();
            BeginContext(188, 23, false);
#line 11 "C:\KendoRepo\ui-for-aspnet-core-examples\grid\razor-pages-crud\src\Pages\Index.cshtml"
Write(Html.AntiForgeryToken());

#line default
#line hidden
            EndContext();
            BeginContext(211, 4, true);
            WriteLiteral("\r\n\r\n");
            EndContext();
            BeginContext(217, 1460, false);
#line 13 "C:\KendoRepo\ui-for-aspnet-core-examples\grid\razor-pages-crud\src\Pages\Index.cshtml"
Write(Html.Kendo().Grid<OrderViewModel>().Name("grid")
                .Groupable()
                .Sortable()
                .Editable()
                .Scrollable()
                .ToolBar(x => x.Excel())
                .Columns(columns =>
                {
                    columns.Bound(column => column.Freight);
                    columns.Bound(column => column.ShipCity);
                    columns.Bound(column => column.SchoolYear)
                        .Filterable(ftb => ftb.DataSource(a => a.Read(r => r.Url("Index?handler=SchoolYears").Data("forgeryToken")))
                        .ItemTemplate("itemTemplate")
                        .Multi(true));
                    columns.Command(column =>
                    {
                        column.Edit();
                        column.Destroy();
                    });
                })
                .Filterable()
                .DataSource(ds => ds.Ajax()
                       .Read(r => r.Url("/Index?handler=Read").Data("forgeryToken"))
                       .Update(u => u.Url("/Index?handler=Update").Data("forgeryToken"))
                       .Create(c => c.Url("/Index?handler=Create").Data("forgeryToken"))
                       .Destroy(d => d.Url("/Index?handler=Destroy").Data("forgeryToken"))
                       .Model(m => m.Id(id => id.OrderID))
                    .PageSize(10)
                )
                .Pageable()
);

#line default
#line hidden
            EndContext();
            BeginContext(1678, 306, true);
            WriteLiteral(@"

<script>
    function forgeryToken() {
        return kendo.antiForgeryTokens();
    }

    function itemTemplate(e) {
        debugger
        return ""<div><label><span>#= data || data.all #</span><input type='checkbox' name='"" + e.field + ""' value='#= data#'/></label></div>""
    }
</script>");
            EndContext();
        }
        #pragma warning restore 1998
        [global::Microsoft.AspNetCore.Mvc.Razor.Internal.RazorInjectAttribute]
        public Microsoft.AspNetCore.Antiforgery.IAntiforgery Xsrf { get; private set; }
        [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<IndexModel> Html { get; private set; }
        public global::Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary<IndexModel> ViewData => (global::Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary<IndexModel>)PageContext?.ViewData;
        public IndexModel Model => ViewData.Model;
    }
}
#pragma warning restore 1591
