#pragma checksum "C:\Users\alestoya\Desktop\New folder (73)\Core Grid AjaxHierarchyEditing\Views\Home\Index.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "7dc1f3d232d9ced212fe68b84b802781ffae6e58"
// <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 (73)\Core Grid AjaxHierarchyEditing\Views\_ViewImports.cshtml"
using Core_Grid_AjaxHierarchyEditing;

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

#line default
#line hidden
#nullable disable
#nullable restore
#line 5 "C:\Users\alestoya\Desktop\New folder (73)\Core Grid AjaxHierarchyEditing\Views\Home\Index.cshtml"
using Core_Grid_AjaxHierarchyEditing.Models;

#line default
#line hidden
#nullable disable
    [global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"7dc1f3d232d9ced212fe68b84b802781ffae6e58", @"/Views/Home/Index.cshtml")]
    [global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"2a827032e22f889af71c14927cfef5356efc6ccb", @"/Views/_ViewImports.cshtml")]
    #nullable restore
    public class Views_Home_Index : global::Microsoft.AspNetCore.Mvc.Razor.RazorPage<dynamic>
    #nullable disable
    {
        #pragma warning disable 1998
        public async override global::System.Threading.Tasks.Task ExecuteAsync()
        {
#nullable restore
#line 1 "C:\Users\alestoya\Desktop\New folder (73)\Core Grid AjaxHierarchyEditing\Views\Home\Index.cshtml"
  
    ViewBag.Title = "Home Page";

#line default
#line hidden
#nullable disable
            WriteLiteral("\r\n");
            WriteLiteral("\r\n\r\n\r\n<script type=\"text/kendo\" id=\"OrdersTemplate\">\r\n<div>\r\n");
#nullable restore
#line 11 "C:\Users\alestoya\Desktop\New folder (73)\Core Grid AjaxHierarchyEditing\Views\Home\Index.cshtml"
Write(await Html.PartialAsync("EditorTemplates/WorkingEmployeeEditorTemplate"));

#line default
#line hidden
#nullable disable
            WriteLiteral("\r\n<div style=\"margin: 15px; display: inline-block;\">\r\n");
#nullable restore
#line 13 "C:\Users\alestoya\Desktop\New folder (73)\Core Grid AjaxHierarchyEditing\Views\Home\Index.cshtml"
Write(Html.Kendo().Button()
.Name("createButton")
.Content("Add")
.ToClientTemplate()
// .Events(e => { e.Click("create"); })
 );

#line default
#line hidden
#nullable disable
            WriteLiteral("\r\n</div>\r\n</div>\r\n</script>\r\n\r\n");
#nullable restore
#line 23 "C:\Users\alestoya\Desktop\New folder (73)\Core Grid AjaxHierarchyEditing\Views\Home\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();
        });
    })
    .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);
                })
                .Events(events => events.Error("error_handler"))
                .Read(read => read.Action("Read_Employees", "Grid"))
                .Update(update => update.Action("Update_Employees", "Grid"))
                .Destroy(destroy => destroy.Action("Destroy_Employees","Grid"))
    )
    .ClientDetailTemplateId("OrdersTemplate")
);

#line default
#line hidden
#nullable disable
            WriteLiteral(@"

<script type=""text/javascript"">
    function error_handler(e) {
        if (e.errors) {
            var message = ""Errors:\n"";
            $.each(e.errors, function (key, value) {
                if ('errors' in value) {
                    $.each(value.errors, function () {
                        message += this + ""\n"";
                    });
                }
            });
            alert(message);
        }
    }
</script>");
        }
        #pragma warning restore 1998
        #nullable restore
        [global::Microsoft.AspNetCore.Mvc.Razor.Internal.RazorInjectAttribute]
        public global::Microsoft.AspNetCore.Mvc.ViewFeatures.IModelExpressionProvider ModelExpressionProvider { get; private set; } = default!;
        #nullable disable
        #nullable restore
        [global::Microsoft.AspNetCore.Mvc.Razor.Internal.RazorInjectAttribute]
        public global::Microsoft.AspNetCore.Mvc.IUrlHelper Url { get; private set; } = default!;
        #nullable disable
        #nullable restore
        [global::Microsoft.AspNetCore.Mvc.Razor.Internal.RazorInjectAttribute]
        public global::Microsoft.AspNetCore.Mvc.IViewComponentHelper Component { get; private set; } = default!;
        #nullable disable
        #nullable restore
        [global::Microsoft.AspNetCore.Mvc.Razor.Internal.RazorInjectAttribute]
        public global::Microsoft.AspNetCore.Mvc.Rendering.IJsonHelper Json { get; private set; } = default!;
        #nullable disable
        #nullable restore
        [global::Microsoft.AspNetCore.Mvc.Razor.Internal.RazorInjectAttribute]
        public global::Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper<dynamic> Html { get; private set; } = default!;
        #nullable disable
    }
}
#pragma warning restore 1591
