RadClientDataSource from Sql

2 posts, 0 answers
  1. Tom
    Tom avatar
    1 posts
    Member since:
    Mar 2012

    Posted 23 Nov 2016 Link to this post

    Trying to use the Bubble Type layer on a map.

    Have successfully downloaded the urban-areas.json file using the WebServiceDataSourceSettings inside the RadClientDataSource and referencing the appropriate ClientDataSourceID in the MapLayer referencing the Bubble type.

    I am trying to duplicate generating the GeoJason data, not from a file, but, from vb.net code behind using <WebServiceDataSourceSettings Select-DataType="JSON" Select-RequestType="POST" Select-ContentType="application/json" ServiceType="GeoJSON" Select-Url="testHeatMap.aspx/jsonsalesdata"></WebServiceDataSourceSettings>, where testHeatMap.asxp/jsonsalesdata is a public function that produces the same formatted json text.

    While using the sample urban-areas.json file inside the RadClientDataSource produces the correct bubbles, not matter what I try in the code behind to produce the same json string, my Bubble layer will not render.

     

    Any ideas or suggestions or examples?

    Thanks.

  2. Ianko
    Admin
    Ianko avatar
    1626 posts

    Posted 25 Nov 2016 Link to this post

    Hello Tom,

    You can check out this article here: http://docs.telerik.com/devtools/aspnet-ajax/controls/clientdatasource/connecting-to-web-service

    Web services should be handled as OData  ServiceType. 

    If you have further difficulties you can get  the client-side object of the RadClientDataSource control and check what data is being consumed.

    Regards,
    Ianko
    Telerik by Progress
    Telerik UI for ASP.NET AJAX is ready for Visual Studio 2017 RC! Learn more.
Back to Top