#pragma checksum "C:\Users\Trung\Downloads\dd1647e8-e92b-4d64-bf77-dcec1924f55e_editor-template\editor-template\RazorPageGridTest\Pages\Customer\Index.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "577ba7322c7d9127c0308e38b2b76b5ecdd94ddb"
// <auto-generated/>
#pragma warning disable 1591
[assembly: global::Microsoft.AspNetCore.Razor.Hosting.RazorCompiledItemAttribute(typeof(RazorPageGridTest.Pages.Customer.Pages_Customer_Index), @"mvc.1.0.razor-page", @"/Pages/Customer/Index.cshtml")]
[assembly:global::Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure.RazorPageAttribute(@"/Pages/Customer/Index.cshtml", typeof(RazorPageGridTest.Pages.Customer.Pages_Customer_Index), null)]
namespace RazorPageGridTest.Pages.Customer
{
    #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:\Users\Trung\Downloads\dd1647e8-e92b-4d64-bf77-dcec1924f55e_editor-template\editor-template\RazorPageGridTest\Pages\_ViewImports.cshtml"
using RazorPageGridTest;

#line default
#line hidden
#line 10 "C:\Users\Trung\Downloads\dd1647e8-e92b-4d64-bf77-dcec1924f55e_editor-template\editor-template\RazorPageGridTest\Pages\Customer\Index.cshtml"
using Kendo.Mvc.UI;

#line default
#line hidden
    [global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"577ba7322c7d9127c0308e38b2b76b5ecdd94ddb", @"/Pages/Customer/Index.cshtml")]
    [global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"744318b5241e944643a047538d223f661951cd13", @"/Pages/_ViewImports.cshtml")]
    public class Pages_Customer_Index : global::Microsoft.AspNetCore.Mvc.RazorPages.Page
    {
        #pragma warning disable 1998
        public async override global::System.Threading.Tasks.Task ExecuteAsync()
        {
#line 3 "C:\Users\Trung\Downloads\dd1647e8-e92b-4d64-bf77-dcec1924f55e_editor-template\editor-template\RazorPageGridTest\Pages\Customer\Index.cshtml"
  
    ViewData["Title"] = "Index";

#line default
#line hidden
            BeginContext(100, 2, true);
            WriteLiteral("\r\n");
            EndContext();
            BeginContext(163, 23, false);
#line 8 "C:\Users\Trung\Downloads\dd1647e8-e92b-4d64-bf77-dcec1924f55e_editor-template\editor-template\RazorPageGridTest\Pages\Customer\Index.cshtml"
Write(Html.AntiForgeryToken());

#line default
#line hidden
            EndContext();
            BeginContext(186, 4, true);
            WriteLiteral("\r\n\r\n");
            EndContext();
            BeginContext(211, 49, true);
            WriteLiteral("\r\n<h2>Index</h2>\r\n\r\n<div id=\"grid\">\r\n\r\n</div>\r\n\r\n");
            EndContext();
            BeginContext(262, 644, false);
#line 18 "C:\Users\Trung\Downloads\dd1647e8-e92b-4d64-bf77-dcec1924f55e_editor-template\editor-template\RazorPageGridTest\Pages\Customer\Index.cshtml"
Write(Html.Kendo().Grid<RazorPageGridTest.Customer>().Name("grid")
    .AutoBind(false)
    .Columns(x=> {
        x.Bound("address").EditorTemplateName("DropDownEditor");
        x.Bound("name");
        x.Command(c => c.Edit());
    })
    .DataSource(d=> d.Custom()
        .Transport(t=> {
            t.Read(r => r.Action("Customer", "Index", new { handler = "ReadRecords" }).Type(HttpVerbs.Post));
            t.Update(r => r.Action("Customer", "Index", new { handler = "UpdateRecord" }).Type(HttpVerbs.Post));

        })
        .Schema(s=> s.Model(m=> m.Id(i=>i.CustomerId)))
        .PageSize(10)
    )
    .Pageable()
    );

#line default
#line hidden
            EndContext();
            BeginContext(907, 569, true);
            WriteLiteral(@"

<script>
    $(function() {
        var grid = $(""#grid"").data(""kendoGrid"");

        grid.dataSource.transport.options.read.beforeSend = function (req) {
            req.setRequestHeader('RequestVerificationToken', $('input:hidden[name=""__RequestVerificationToken""]').val());
        };

        grid.dataSource.transport.options.update.beforeSend = function (req) {
            req.setRequestHeader('RequestVerificationToken', $('input:hidden[name=""__RequestVerificationToken""]').val());
        };

        grid.dataSource.read();
    });
</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<RazorPageGridTest.Pages.Customer.IndexModel> Html { get; private set; }
        public global::Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary<RazorPageGridTest.Pages.Customer.IndexModel> ViewData => (global::Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary<RazorPageGridTest.Pages.Customer.IndexModel>)PageContext?.ViewData;
        public RazorPageGridTest.Pages.Customer.IndexModel Model => ViewData.Model;
    }
}
#pragma warning restore 1591
