This is a migrated thread and some comments may be shown as answers.

Grid not populating with data when using RadClientDataSource

1 Answer 34 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Artie
Top achievements
Rank 1
Artie asked on 16 Nov 2015, 03:45 AM

I have Web API REST service running, which I can call  (http://localhost/api/Ordes) and it returns JSON formatted list of orders. When this service and WebForm.asxp file are in the same project and I configure client data control (just like I saw it in the samples), i.e. /api/Orders then the grid populates with data. But when I move this service to a different project (which is our production scenario) and then I have to configure it using actual URL (http://localhost/api/Ordes) then the grid does not populate with data. Why?

Both services are identical copies except that one sits in the same project as WebForm.aspx (/api/Orders) and the other one has to be accessed via URL. In both cases services are hit (checked in the debugger) properly but only former populates the data in the grid, other does not.

Assuming that I get this to work (with your help) then, user clicks on a row in the grid then how do I call /api/Order/1 to delete it? I know how to extract the ID from the row (excellent examples here) but how to I call it with the "1" parameter to actually delete it?

I can't attach sample project. I can upload it to a share if you have one available.

 

1 Answer, 1 is accepted

Sort by
0
Konstantin Dikov
Telerik team
answered on 18 Nov 2015, 12:03 PM
Hello Artie,

Regarding the first problem that you are facing I would suggest that you take a look at the following forum post:
I would also recommend that you take a look at the following blog post, where you will find detailed information on this matter:
Hope this helps.


Regards,
Konstantin Dikov
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
Grid
Asked by
Artie
Top achievements
Rank 1
Answers by
Konstantin Dikov
Telerik team
Share this question
or