Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
35
igTree Knockout mark items for delete (_destory)
posted

Dear to whom it may concern,

 

I have an igTree bound to a viewModel using Knockout and this is working well.

I am returning the viewModel to the server, by Ajax JSON Post to Web API (ASP.NET), on a Button Click event.

My problem is that when I delete nodes I think they are being removed from the viewModel that is being returned to the server.

Is there a way of marking the entries for delete, using the knockout '_destroy' field rather than deleting them from the viewModel (unless it already does this and I am missing something) and, if so, how do I use ASP.NET Web API to retrieve the viewModel including the _destroy property (I understand the latter is strictly not related to the igTree control but any help would be greatly appreciated)?

 

Many Thanks

 

Paul Fryer

Parents
No Data
Reply Children
No Data