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

Binding to Web Service

1 Answer 35 Views
ScheduleView
This is a migrated thread and some comments may be shown as answers.
Mark Beckner
Top achievements
Rank 1
Mark Beckner asked on 18 Apr 2011, 09:45 PM

Using the ScheduleView control in Silverlight, I need to be able to bind to results returned by a web service.  I have tried a variety of methods to perform this, but since the data is returned asynchronously, the control has already rendered before the data is bound.  What is the correct method to bind - for instance, appointments - coming from a webservice?

 

 

public

 

 

ViewModel()

 

 

{

 

 

CallGetScheduleItems();

 

 

 

 

 

}
public

 

 

void CallGetScheduleItems()

 

 

{

 

 

 

CrmServiceWrapperSoapClient crmServiceClient = new CrmServiceWrapperSoapClient();

 

 

crmServiceClient.GetUnassignedItemsCompleted +=

 

new EventHandler<GetUnassignedItemsCompletedEventArgs>(crmServiceClient_GetUnnassignedItemsCompleted);

 

 

crmServiceClient.GetUnassignedItemsAsync();

 

 

 

}

 

 

 

void crmServiceClient_GetUnnassignedItemsCompleted(object sender, GetUnassignedItemsCompletedEventArgs e)

 

 

{

 

_resultSet = e.Result;

 

 

 

this.Tasks = new ObservableCollection<Task>

 

 

{

 

 

 

new Task { Name = "Task 1" },

 

 

 

 

new Task { Name = "Task 2" },

};

}

1 Answer, 1 is accepted

Sort by
0
George
Telerik team
answered on 21 Apr 2011, 04:23 PM
Hi Mark,

Please, refer to the following forum thread, where you can find additional information how to use RadScheduleView with RIA Services - http://www.telerik.com/community/forums/silverlight/scheduleview/database-table-structure.aspx
 

Greetings,
George
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
Tags
ScheduleView
Asked by
Mark Beckner
Top achievements
Rank 1
Answers by
George
Telerik team
Share this question
or