Grid not populating with data when using RadClientDataSource

2 posts, 0 answers
  1. Artie
    Artie avatar
    1 posts
    Member since:
    Nov 2015

    Posted 15 Nov 2015 Link to this post

    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.


  2. Konstantin Dikov
    Konstantin Dikov avatar
    2466 posts

    Posted 18 Nov 2015 Link to this post

    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.

    Konstantin Dikov
    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
Back to Top