#pragma checksum "C:\Users\alestoya\Desktop\Apps\TelerikAspNetCoreApp173\TelerikAspNetCoreApp173\Pages\Index.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "9960bff16a2cca7c323f9a2204dc47ff10872d63"
// <auto-generated/>
#pragma warning disable 1591
[assembly: global::Microsoft.AspNetCore.Razor.Hosting.RazorCompiledItemAttribute(typeof(TelerikAspNetCoreApp173.Pages.Pages_Index), @"mvc.1.0.razor-page", @"/Pages/Index.cshtml")]
namespace TelerikAspNetCoreApp173.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;
#nullable restore
#line 1 "C:\Users\alestoya\Desktop\Apps\TelerikAspNetCoreApp173\TelerikAspNetCoreApp173\Pages\_ViewImports.cshtml"
using TelerikAspNetCoreApp173;

#line default
#line hidden
#nullable disable
#nullable restore
#line 7 "C:\Users\alestoya\Desktop\Apps\TelerikAspNetCoreApp173\TelerikAspNetCoreApp173\Pages\Index.cshtml"
using TelerikAspNetCoreApp173.Data;

#line default
#line hidden
#nullable disable
#nullable restore
#line 8 "C:\Users\alestoya\Desktop\Apps\TelerikAspNetCoreApp173\TelerikAspNetCoreApp173\Pages\Index.cshtml"
using Kendo.Mvc.UI;

#line default
#line hidden
#nullable disable
    [global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"9960bff16a2cca7c323f9a2204dc47ff10872d63", @"/Pages/Index.cshtml")]
    [global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"14281858861d0924afd0d3cded317cc870be1703", @"/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()
        {
#nullable restore
#line 3 "C:\Users\alestoya\Desktop\Apps\TelerikAspNetCoreApp173\TelerikAspNetCoreApp173\Pages\Index.cshtml"
  
    ViewData["Title"] = "Home page";

#line default
#line hidden
#nullable disable
            WriteLiteral("\r\n");
            WriteLiteral("\r\n");
#nullable restore
#line 11 "C:\Users\alestoya\Desktop\Apps\TelerikAspNetCoreApp173\TelerikAspNetCoreApp173\Pages\Index.cshtml"
Write(Html.AntiForgeryToken());

#line default
#line hidden
#nullable disable
            WriteLiteral("\r\n\r\n<script type=\"text/kendo\" id=\"OrdersTemplate\">\r\n");
#nullable restore
#line 14 "C:\Users\alestoya\Desktop\Apps\TelerikAspNetCoreApp173\TelerikAspNetCoreApp173\Pages\Index.cshtml"
Write(Html.Kendo().Grid<OrderViewModel>()
    .Name("Orders_#=EmployeeID#")
    .Groupable()
    .Sortable()
    .Editable()
    .Scrollable()
    .ToolBar(x => x.Create())
    .Columns(columns =>
    {
        columns.Bound(column => column.Freight);
        columns.Bound(column => column.ShipName);
        columns.Bound(column => column.ShipCity);
        columns.Command(column =>
        {
            column.Edit();
            column.Destroy();
        }).Width(230);
    })
    .DataSource(ds => ds
        .Ajax()
        .Read(r => r.Url("/Index?handler=ReadOrders").Data("forgeryToken"))
        .Update(u => u.Url("/Index?handler=UpdateOrders").Data("forgeryToken"))
        .Create(c => c.Url("/Index?handler=CreateOrders").Data("forgeryToken"))
        .Destroy(d => d.Url("/Index?handler=DestroyOrders").Data("forgeryToken"))
        .Model(m => m.Id(id => id.OrderID))
        .PageSize(10)
    )
    .Pageable()
    .ToClientTemplate()
);

#line default
#line hidden
#nullable disable
            WriteLiteral("\r\n</script>\r\n\r\n");
#nullable restore
#line 46 "C:\Users\alestoya\Desktop\Apps\TelerikAspNetCoreApp173\TelerikAspNetCoreApp173\Pages\Index.cshtml"
Write(Html.Kendo().Grid<EmployeeViewModel>()
    .Name("Employees")
    .Columns(columns =>
    {
        columns.Bound(e => e.FirstName).Width(140);
        columns.Bound(e => e.LastName).Width(140);
        columns.Bound(e => e.Title).Width(200);
        columns.Bound(e => e.Country).Width(200);
        columns.Bound(e => e.City);
        columns.Command(command =>
        {
            command.Edit();
            command.Destroy();
        });
    })
    .ToolBar(toolbar=>toolbar.Create())
    .Editable(editable=>editable.Mode(GridEditMode.InLine))
    .Pageable().Sortable().Filterable()
    .DataSource(source => source.Ajax()
        .Model(model =>
         {
             model.Id(e => e.EmployeeID);
             model.Field(e => e.EmployeeID).Editable(false);
         })
         .Create(create => create.Url("/Index?handler=CreateEmployees").Data("forgeryToken"))
         .Read(read => read.Url("/Index?handler=ReadEmployees").Data("forgeryToken"))
         .Update(update => update.Url("/Index?handler=UpdateEmployees").Data("forgeryToken"))
         .Destroy(destroy => destroy.Url("/Index?handler=DestroyEmployees").Data("forgeryToken"))
    )
    .ClientDetailTemplateId("OrdersTemplate")
);

#line default
#line hidden
#nullable disable
            WriteLiteral("\r\n<script>\r\n    function forgeryToken() {\r\n        return kendo.antiForgeryTokens();\r\n    }\r\n</script>\r\n");
        }
        #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
