Click here to Skip to main content
15,886,701 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi, everyone I am working on a mvc c# application using kendo in my views. My veiw code is (snippet):
.DataSource(dataSource => dataSource
                            .Ajax()
                            .Batch(true)
                            .ServerOperation(false)
                            .Read(read => read.Action("WrongDelivery_Read", "DirectDataInput"))
                            .PageSize(100)
                            .Model(model => model.Id(inv => inv.WrongDelivEvent_Id))
                            .Destroy(update => update.Action("WrongDelivery_Destroy", "DirectDataInput"))
                        )


But when I press the "Edit" button and put breakpoint at
WrongDelivery_Destroy
method, the breakpoint is not hit. Any help or advise will be appreciated.

What I have tried:

I tried to search in google and stackoverflow for any solution but did not find anything appropriate.
Posted
Updated 8-May-19 6:45am

WrongDelivery_Destroy is mapped to your delete controller via the Destroy() method.

The following methods can be mapped.

- Create
- Read
- Update
- Destroy

Effectively giving you full CRUD functionality. You need to implement the Update() method for editing.
 
Share this answer
 
The breakpoint doesn't work because there's really no code to execute there. The Kendo commands just generat javascript code that is sent to the client. There's really nothing server-side that executes, other than the Controller code those methods are mapped to use when they are called. You'd be better off setting breakpoints on the Controller methods you told the control to call, not on the Kendo stuff.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900