The text of this article is not in this database — only its details are. Read it on the old site: CRUD Operations Using Knockout in MVC Application: Part 2
8 Comments
Join the conversation! Your thoughts help the community grow.
Sign in to leave a comment.

Gowtham RajamanickamPosted Mar 27, 2015, 9:44 AM
simply superb..
Guler RemusPosted Jan 28, 2015, 6:14 AM
at Delete section you put this: self.delete = function (Product) {if (confirm('Are you sure to Delete "' + Product.Title + '" product ??')) { var id = Product.Id; $.ajax({ url: '@Url.Action("AddProduct", "Product")', cache: false, is it correct to call ActionResult AddProduct ?
Anubhav ChaudharyPosted Dec 12, 2013, 3:17 AM
http://www.c-sharpcorner.com/uploadfile/cd7c2e/implement-insert-update-and-delete-functionality/
Anubhav ChaudharyPosted Dec 12, 2013, 3:16 AM
If you don't want to use Knockout for creating the Grid then you should follow this Article:- http://www.c-sharpcorner.com/uploadfile/cd7c2e/implement-insert-update-and-delete-functionality/ Here Real Data from the DataBase is used for doing CRUD operations
Anubhav ChaudharyPosted Dec 12, 2013, 3:15 AM
This Article is like a Demo which shows that How Grid can be created and how CRUD operations will be performed, that's why HardCoded Data was used, Viewer need to make changes according to his requirements
Anubhav ChaudharyPosted Dec 12, 2013, 3:11 AM
Hey Pradeep, just check the First part of this Article, you will find that Data is not fetched from any database, data is Hard Coded. If data is Hard Coded then how will Binding will be performed?? If you want to update your data by using Binding then you need to add grid.Bind(Model.ClassName) in the starting of View
Pradeep PatelPosted Dec 12, 2013, 2:55 AM
there is an error in your code on data-bind
Pradeep PatelPosted Dec 12, 2013, 2:54 AM
<table id="products1" data-bind="visible: Products().length > 0"> data-bind is not supported in your code