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.