Problem with how to display data(XML) from vitual directory

4 posts, 0 answers
  1. yik
    yik avatar
    4 posts
    Member since:
    Dec 2010

    Posted 10 Dec 2010 Link to this post

    Hi,

    I have created webservice which using VS2008 and deploy it as a vitual directory in my mechine. And actually i already added it as a service reference in VS 2010 in order to retrieve the data in database from webservice i have done by VS2008. The problem is now, how can i retrieve the data from service reference which is webservice i done and display it on map that i have created in VS 2010.

    Thanks for helping..
  2. Andrey
    Admin
    Andrey avatar
    1681 posts

    Posted 14 Dec 2010 Link to this post

    Hi yik,

    Unfortunately the question your asked for (retrieving data from the web-service) is outside the scope of the RadMap control support. It completely depends on your web-service implementation. There are several articles in MSDN which describes how you can consume web and WCF services from Silverlight applications.

    You can find examples which demonstrates how to show information over the map in our demo application:

    http://demos.telerik.com/silverlight/#Map/DataBinding
    http://demos.telerik.com/silverlight/#Map/DynamicLayer
    http://demos.telerik.com/silverlight/#Map/HotSpot
    http://demos.telerik.com/silverlight/#Map/Integration/Dashboard

    I hope these resources get you started properly.

    Kind regards,
    Andrey Murzov
    the Telerik team
    Browse the videos here>> to help you get started with RadControls for Silverlight
  3. DevCraft banner
  4. yik
    yik avatar
    4 posts
    Member since:
    Dec 2010

    Posted 14 Dec 2010 Link to this post

    Hi,

    Thanks for all examples/resources that given. Already able to retrieve data from database but the problem now is, all data that i retrieved from xml is dataset. how can i only show result from database in telerikGridView  but not whole dataset which retrieved from WebServices.

    #### here is examples  of coded###

    void Obj_GetAllClientByBlockCompleted(object sender, GetAllClientByBlockCompletedEventArgs e)
    {
    GridView.ItemsSource = e.Result.Nodes.ToArray();
    }

    ###result####

    It shows whole dataset including FirstAttribute,Elements, FirstNode which is XML result and so on..if let say i use 
    GridView.ItemsSource = e.Result;
    the data is there but did not show in gridview.


    How can i only show certain data in telerikdatagrid.
  5. Pavel Pavlov
    Admin
    Pavel Pavlov avatar
    2039 posts

    Posted 16 Dec 2010 Link to this post

    Hi yik,

    May I see the dataset ? Some code  would be helpful here. Without knowing the structure of your data I am not able to give a descent answer to your query .

    Generally you should be able to filter your data (e.g. using Linq ) and feed it to RadGridView in the form of IEnumerable.

    Regards,
    Pavel Pavlov
    the Telerik team
    Browse the videos here>> to help you get started with RadControls for Silverlight
Back to Top