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

problem while binding data from webservice

2 Answers 20 Views
Expander
This is a migrated thread and some comments may be shown as answers.
swathi vajja
Top achievements
Rank 1
swathi vajja asked on 28 Apr 2010, 03:01 PM
Hi,
I am bit new bee to this telerik controls, what i am trying do is, i have a webpart in which i have to display a grid which take input from different sharepoint lists. I am done with deploying, writing .xaml,,,,, I am writing a webservice to get data from sharepoint lists. as there is no webservice template in 2010 vs , I have taken empty asp.net project, added new service.. done coding... Added this reference to silverlight application. 
 public MainPage()
        {
            InitializeComponent();

            FilesSoapClient obj1=new FilesSoapClient();
 obj1.ReturndataCompleted += new EventHandler<ReturndataCompletedEventArgs>(obj1_ReturndataCompleted);

            obj1.ReturndataAsync(); 
}
  void obj1_ReturndataCompleted(object sender, ReturndataCompletedEventArgs e)
        {
            var result = e.Result;
            gvMain.ItemsSource = result;
        }

but it is throwing me some weird error.
i have attached image with error screen shot.

Is it really gud practice to populate list data from webservice.?
Can i pass datatable to silverlight application ?
Is there any other method to populate sharepoint list data in rad grid view in sharepoint webpart.

My environmnet is: sharepoint 2010, silverlight 3, Rad controls for silverlight Q1 2010 SP1..

Even though it is a simple issue ,please guide me.

Your minute  can save my day

2 Answers, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 28 Apr 2010, 03:46 PM
Hello,

Can you try to get (and post) the inner exception using the debugger? Generally you cannot serialize DataTable to Silverlight client application since there is no such class however you can use the approach demonstrated in my blog post (together with our own Silverlight DataTable). Please check also this video - although the grid is not bound to SharePoint list the environment is very similar to your scenario.

This thread category by the way is related to our expander control - please post your questions in the relevant categories.

Best wishes,
Vlad
the Telerik team

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 Public Issue Tracking system and vote to affect the priority of the items.
0
swathi vajja
Top achievements
Rank 1
answered on 29 Apr 2010, 08:05 AM
Thank you very much 
Tags
Expander
Asked by
swathi vajja
Top achievements
Rank 1
Answers by
Vlad
Telerik team
swathi vajja
Top achievements
Rank 1
Share this question
or