Quantcast
Viewing all articles
Browse latest Browse all 7205

How to implement CRUD operations with a DataSource

This example demonstrates how to implement CRUD operations with a DataSource that obtains data from a remote Rest service. The DataSource object does not implement CRUD operations out-of-the-box. We can do this using jQuery.ajax. It is also necessary to call the DataSource.load method to "inform" your widget that it is necessary to reload its content.

See also:
Connect to RESTful Service
How to implement the Rest service based on an ASP.NET WebAPI application

Question Comments

Added By: Leovin S at: 8/20/2013 3:38:42 AM    

Thank you for the code.But the problem is that it is related to data that is retrieved through the service.I tried getting my data retrieved from my json file but then it shows errors.
So ,if you could give me a stand alone project ,including the data base I would be able to understand very clearly.

Added By: pedro azpurua at: 2/18/2014 5:59:29 AM    

I M P R S S I V E after four months working with OData this sample is the Nirvana

Added By: Muhammad Syarif at: 6/10/2014 7:27:29 PM    

this tutorial very good.but when i try it and run i get message "No data display" in my emulator.why that happen??
please help me.thank you.

Added By: Muhammad Syarif at: 6/10/2014 9:50:16 PM    

hello devexpress.
i download this source code and run it, i change the destination of database to http://localhost:9839/DataService.svc/Categories
but i just get Loading in my emulator. what the wrong, please help me.thank you

Added By: Nikolai (DevExpress Support) at: 6/10/2014 11:16:47 PM    Hi,

Please test this example with How to implement the Rest service based on an ASP.NET WebAPI application.

Viewing all articles
Browse latest Browse all 7205

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>