Correction required in cshtml code for ASP.NET Core Grid Popup Editing

1 Answer 25 Views
Grid
Rahul
Top achievements
Rank 1
Rahul asked on 20 Mar 2024, 12:27 PM | edited on 20 Mar 2024, 01:32 PM

Below code needs to be corrected for ASP.NET Core Grid Popup Editing : 

https://demos.telerik.com/aspnet-core/grid/editing-popup?autoRun=true&theme=default-main-dark

.DataSource(dataSource => dataSource .Ajax() .PageSize(20) .Events(events => events.Error("error_handler")) .Model(model => model.Id(p => p.ProductID)) .Create(update => update.Action("EditingPopup_Create", "Grid")) .Read(read => read.Action("EditingPopup_Read", "Grid")) .Update(update => update.Action("EditingPopup_Update", "Grid")) .Destroy(update => update.Action("EditingPopup_Destroy", "Grid"))

 

It seems create arrow function is called for update & destroy as well.

while editing the row data EditingPopup_Create create is called instead of update !!

1 Answer, 1 is accepted

Sort by
0
Anton Mironov
Telerik team
answered on 25 Mar 2024, 07:10 AM

Hi Rahul,

Thank you for the details provided.

I made a couple of tests with the demo and when creating an item, in the Network tab, we have a call only for the Create Action:

When the Update an item only the Update Action is called:

The following article provided information about the implementation of the Editing functionality for the Telerik UI Grid:

I hope this information helps.

Kind Regards,
Anton Mironov
Progress Telerik

Stay tuned by visiting our public roadmap and feedback portal pages. If you're new to the Telerik family, be sure to check out our getting started resources, as well as the only REPL playground for creating, saving, running, and sharing server-side code.
Tags
Grid
Asked by
Rahul
Top achievements
Rank 1
Answers by
Anton Mironov
Telerik team
Share this question
or