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

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

3 Answers 37 Views
Map
This is a migrated thread and some comments may be shown as answers.
yik
Top achievements
Rank 1
yik asked on 10 Dec 2010, 09:07 AM
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..

3 Answers, 1 is accepted

Sort by
0
Andrey
Telerik team
answered on 14 Dec 2010, 02:49 PM
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
0
yik
Top achievements
Rank 1
answered on 15 Dec 2010, 04:27 AM
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.
0
Pavel Pavlov
Telerik team
answered on 16 Dec 2010, 04:22 PM
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
Tags
Map
Asked by
yik
Top achievements
Rank 1
Answers by
Andrey
Telerik team
yik
Top achievements
Rank 1
Pavel Pavlov
Telerik team
Share this question
or