This question is locked. New answers and comments are not allowed.
Good day,
I am trying my darnedest to get this working without an entity model. My database structure is nothing even close or usuable for the scheduleview so I am attempting to manually create the objects.
In the .Web project I have manually created a DomainService:
To get access to "Appointments" I need to add Telerik.Windows.Controls.ScheduleView. That assembly doesn't appear to be readily available in the .Net references (as it is for the non .web project) so I have to browse or use recent to reference the assembly. Then I get warnings for other assemblies saying that I am missing System.Windows and System.Windows.Data. Do I need to address these warning?
Then when I add "using Telerik.Windows.Controls.ScheduleView;" to my DomainService I get the folllowing error:
Error 2 The type 'Telerik.Windows.Controls.ViewModelBase' is defined in an assembly that is not referenced. You must add a reference to assembly 'Telerik.Windows.Controls, Version=2011.1.419.1040, Culture=neutral, PublicKeyToken=5803cfa389c90ce7'.
So by brute force I add a reference to Telerik.Windows.Controls.dll.
After all that, when I can finally build the .web project. When I build the silverlight project I get the following error:
Error 1 Entity 'Telerik.Windows.Controls.ScheduleView.Appointment' has a property 'TimeZone' with an unsupported type.
How do I fix this error?
Was all the work necessary to access appointments in the DomainService or is there a better way?
Microsoft Visual Studio 2010
Version 10.0.30319.1 RTMRel
Microsoft .NET Framework
Version 4.0.30319 RTMRel
Installed Version: Professional
Microsoft Visual C# 2010 01018-587-3062631-70500
Microsoft Visual C# 2010
Hotfix for Microsoft Visual Studio 2010 Professional - ENU (KB982218) KB982218
This hotfix is for Microsoft Visual Studio 2010 Professional - ENU.
Telerik Silverlight VSExtensions 2011.01.414.0
Telerik RadControls for Silverlight VSExtensions Package
-Markus
I am trying my darnedest to get this working without an entity model. My database structure is nothing even close or usuable for the scheduleview so I am attempting to manually create the objects.
In the .Web project I have manually created a DomainService:
[EnableClientAccess()]public class MyDomainService : DomainService{ private Random random = new Random(); public List<Appointment> GetVisits(DateTime aStartDate) { List<Appointment> result = new List<Appointment>(); DateTime startDate = DateTime.Now.Date; for (int i = 0; i < 10; i++) { int length = 0; for (int currentTime = 0; currentTime < 24 * 60; currentTime += length) { length = this.random.Next(30, 180); if (length % 5 == 0) continue; if ((24 * 60 - currentTime + length) < 60 || (24 * 60 - currentTime - length) < 0) break; Appointment appointment = new Appointment(); appointment.Subject = string.Format("App {0}.{1}", i + 1, length); appointment.Start = startDate.AddMinutes(currentTime); appointment.End = startDate.AddMinutes(currentTime + length); result.Add(appointment); } startDate = startDate.AddDays(1); System.Threading.Thread.Sleep(100); } return result; }}To get access to "Appointments" I need to add Telerik.Windows.Controls.ScheduleView. That assembly doesn't appear to be readily available in the .Net references (as it is for the non .web project) so I have to browse or use recent to reference the assembly. Then I get warnings for other assemblies saying that I am missing System.Windows and System.Windows.Data. Do I need to address these warning?
Then when I add "using Telerik.Windows.Controls.ScheduleView;" to my DomainService I get the folllowing error:
Error 2 The type 'Telerik.Windows.Controls.ViewModelBase' is defined in an assembly that is not referenced. You must add a reference to assembly 'Telerik.Windows.Controls, Version=2011.1.419.1040, Culture=neutral, PublicKeyToken=5803cfa389c90ce7'.
So by brute force I add a reference to Telerik.Windows.Controls.dll.
After all that, when I can finally build the .web project. When I build the silverlight project I get the following error:
Error 1 Entity 'Telerik.Windows.Controls.ScheduleView.Appointment' has a property 'TimeZone' with an unsupported type.
How do I fix this error?
Was all the work necessary to access appointments in the DomainService or is there a better way?
Microsoft Visual Studio 2010
Version 10.0.30319.1 RTMRel
Microsoft .NET Framework
Version 4.0.30319 RTMRel
Installed Version: Professional
Microsoft Visual C# 2010 01018-587-3062631-70500
Microsoft Visual C# 2010
Hotfix for Microsoft Visual Studio 2010 Professional - ENU (KB982218) KB982218
This hotfix is for Microsoft Visual Studio 2010 Professional - ENU.
Telerik Silverlight VSExtensions 2011.01.414.0
Telerik RadControls for Silverlight VSExtensions Package
-Markus