problem while binding data from webservice

3 posts, 0 answers
  1. swathi vajja
    swathi vajja avatar
    4 posts
    Member since:
    Apr 2010

    Posted 28 Apr 2010 Link to this post

    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. Vlad
    Admin
    Vlad avatar
    11100 posts

    Posted 28 Apr 2010 Link to this post

    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.
  3. DevCraft banner
  4. swathi vajja
    swathi vajja avatar
    4 posts
    Member since:
    Apr 2010

    Posted 29 Apr 2010 Link to this post

    Thank you very much 
Back to Top