I would be useful for MVVM to be able to bind the VisibleDates property to an ObservableCollection. Any reason why this can't be done?
Yes, I did mean ActivityBase, not IActivity.
I was setting the OwningResourceId and not the OwningResource as with the OwningResourceCalendar/Id and after changing that it all fell into place and worked.
Thanks for the thorough response.
jifman said: There is still a problem I was unable to resolve and it is during the GetActivities call. The query is made async so a result is created and passed back to the caller, then the initialise is called with the data. I created Appointments from my data and then cast them with .ToList<IActivityBase> but the appointment is now displayed as a plain box on the screen.
There is still a problem I was unable to resolve and it is during the GetActivities call. The query is made async so a result is created and passed back to the caller, then the initialise is called with the data. I created Appointments from my data and then cast them with .ToList<IActivityBase> but the appointment is now displayed as a plain box on the screen.
jifman said: The connection with the appointment seems lost, like the IActivity is cloned somewhere.
The connection with the appointment seems lost, like the IActivity is cloned somewhere.
There is no IActivity so I'm guessing you mean ActivityBase but I'm not sure what you mean by the connection being lost. Are you creating new activity (e.g. appointment) instances for each GetActivities call? The connector is supposed to return the same activity instance that represents a specific underlying activity item. The ListScheduleDataConnector does this for the items in its ItemsSource collections by maintaining a relationship between the Id of the dataitem and the activity that it handed out that represents that dataitem.
jifman said: I would also like to set the DataItem on the appointment but this is readonly, why? I want to style the display to show an appointment status but there is just no connection back to the original appointment.
I would also like to set the DataItem on the appointment but this is readonly, why? I want to style the display to show an appointment status but there is just no connection back to the original appointment.
The VisibleDates collection was a dead end on this one. With MVVM i was able to bind to the collection but then getting the changes back was just plain messy.
I ended up writing the data connector to pick up the data but that was also a bit of a challenge, the docs are very slim on detail.
Hope you can help.
Hello,
I am just checking if you got this worked out or you still require any assistance or clarification on the matter.
If this is what you were looking for please verify the answer so it helps other users as well.
Sincerely,Petar MonovDeveloper Support EngineerInfragistics Bulgariawww.infragistics.com/support
We do have the WcfListScheduleDataConnector currently that you can use to use Wcf to communicate with the server where a ListScheduleDataConnector is used on the server to obtain the data and provide it back to the client. With regards to a Wcf service outside of that, you can create a custom ScheduleDataConnectorBase. There is a topic in the help that describes what is involved. You may also submit a suggestion for adding more custom connectors. If you do so please try to describe your requirements as fully as possible so we can ensure that we try to meet the use case/scenarios.