This is a migrated thread and some comments may be shown as answers.

Failed to load resource: the server responded with a status of 404 (Not Found) kendo grid

1 Answer 439 Views
Grid
This is a migrated thread and some comments may be shown as answers.
sandy
Top achievements
Rank 1
Iron
Veteran
sandy asked on 11 Nov 2020, 01:34 PM

Hi,

When am trying to load json data to kendo grid am getting above error in chrome console. 

here is my json 

[{"EMPNUMBER":57,"EMPNAME":"Seldon, Brenda","COMPANY":"IT","PROJECTNAME":"Bullhorn P1 Integ","CHARGEDESC":"BizTalk Testing"},{"EMPNUMBER":70,"EMPNAME":"DiSanto, Lisa","COMPANY":"IT","PROJECTNAME":"Employee Time-off Tasks","CHARGEDESC":"Vacation (Personal Holiday) Regular Kelly Only"},{"EMPNUMBER":70,"EMPNAME":"DiSanto, Lisa","COMPANY":"IT","PROJECTNAME":"2020 Production Support","CHARGEDESC":"Production Support"}]

 

here is my design code

@( Html.Kendo().Grid<TimeControlReportEnhancements.Models.TimeControlGrid>()
                .Name("client")
                .Columns(columns =>
                {
                   
                    columns.Bound(p => p.EMPNAME);
                    columns.Bound(p => p.COMPANY).Width(150);
                    columns.Bound(p => p.PROJECTNAME).Width(150);
                    columns.Bound(p => p.CHARGEDESC).Width(150);
                    columns.Command(command => { command.Edit(); command.Destroy(); }).Width(200);
                })
                .ToolBar(toolbar =>
                {
                    toolbar.Create();
                    toolbar.Save();
                })
                .HtmlAttributes(new { style = "height: 550px;" })
                .Editable(editable => editable.Mode(GridEditMode.InCell))
                .Filterable()
                .Pageable()
                .Navigatable()
                .Sortable()
                .Scrollable(scr => scr.Height(550))
                .DataSource(dataSource => dataSource
                    .Ajax()
                    .Batch(true)
                    .PageSize(20)
                    .ServerOperation(false)
                    .Events(events => events.Error("error_handler"))
                    .Model(model => model.Id(p => p.EMPNUMBER))
                    .Create("Filter_Multi_Editing_Create", "Home")
                    .Read("GetAllEmployees", "Home")
                    .Update("Filter_Multi_Editing_Update", "Home")
                    .Destroy("Filter_Multi_Editing_Destroy", "Home")
                )
)

1 Answer, 1 is accepted

Sort by
0
Martin
Telerik team
answered on 13 Nov 2020, 12:34 PM

Hello Sandy,

Thank you for the screenshots.

Attached you will find a small project based on the shared configuration. Could you please modify it so that I can observe the issues you are experiencing? I will then test it see what is causing them.

Looking forward to your reply.

Regards,
Martin
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Tags
Grid
Asked by
sandy
Top achievements
Rank 1
Iron
Veteran
Answers by
Martin
Telerik team
Share this question
or