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

Cannot get scheduleview to work with domain service

5 Answers 118 Views
ScheduleView
This is a migrated thread and some comments may be shown as answers.
Alan Mosley
Top achievements
Rank 1
Alan Mosley asked on 01 Oct 2012, 12:01 PM

I have made a few things in silverlight but I now have a situation where I need to create multiple controls to be used in a web applications.

What I don’t understand is how to include more then one control in a single page.

Can I make server controls in one project and one XAP file?

How can I then place then on the same page?

 

Thanks

 

 

 

Hi, I am working on a project and I want to suggest we buy Telerik controls to use in the project, but I am having trouble getting the schedule view to work, I need to show a working schedule to have any chance of getting the funds.

I downloaded the sample  app and built the tables in my database. I have added a domain service to my website, I have copied the silverlight project page for page, but just cant get it to work. I am left with these errors.

 

Error    2          The name "ScheduleViewViewModel" does not exist in the namespace "clr-namespace:ScheduleControl.ViewModel".    C:\TeamProjects\Homely\Homely.co\ScheduleControl\MainPage.xaml            9          3          ScheduleControl

Error    3          The type or namespace name 'Service' does not exist in the namespace 'homely.co' (are you missing an assembly reference?)   C:\TeamProjects\Homely\Homely.co\ScheduleControl\MainPage.xaml.cs    6          17            ScheduleControl

Error    4          The type or namespace name 'Service' does not exist in the namespace 'homely.co' (are you missing an assembly reference?)   C:\TeamProjects\Homely\Homely.co\ScheduleControl\ScheduleViewRepository.cs           8            17        ScheduleControl

Error    5          The type or namespace name 'ScheduleViewDomainContext' could not be found (are you missing a using directive or an assembly reference?)            C:\TeamProjects\Homely\Homely.co\ScheduleControl\ScheduleViewRepository.cs           18        18            ScheduleControl

Error    6          The type or namespace name 'ScheduleViewDomainContext' could not be found (are you missing a using directive or an assembly reference?)            C:\TeamProjects\Homely\Homely.co\ScheduleControl\ScheduleViewRepository.cs           19        17            ScheduleControl

 

The namespace service does exist, the ScheduleViewViewModel method does exists in the “clr-namespace:ScheduleControl.ViewModel” namespace.

I have spend a lot of time trying to get this to work. Please help.

The part i dont underdtand is the M2M4Ria, i have installed the nuget version on silverlight project, and the serverside package on dll with entity model.
I have been able to create the domain service, but are left with these errors.

if you could shine a light for me i would be most happy

5 Answers, 1 is accepted

Sort by
0
Yana
Telerik team
answered on 04 Oct 2012, 08:51 AM
Hello Alan,

I am sending you attached our new ScheduleView Db example which is working with RIA, EF and MS SQL. The project is still in test phase, but i think it will be helpful for you.  It doesn't use M2M4Ria anymore and we will replace the current sample with it. 

You just need to modify the ConnectionString in the Web project in order to be able to run the example.

If you have any further questions, please don't hesitate to contact us.

Kind regards,
Yana
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Alan Mosley
Top achievements
Rank 1
answered on 04 Oct 2012, 12:00 PM

Thanks for the sample, but I have done things manually, I need to add resources dynamically and a few other things so I thought it better I do things this way.

But I do have another problem.

When getting event args for appointment edited, I get an a appointment object. I was expecting to see its uniqueID, so I can identify what record to edit in the database.

How can I identify what appointment is being edited?



Thanks
0
Alan Mosley
Top achievements
Rank 1
answered on 06 Oct 2012, 02:19 PM
OK solved this problem
e.Appointment.UniqueId 'did not work
  
Dim a As Appointment = CType(e.Appointment, Appointment)
a.UniqueId 'did work
0
Mr
Top achievements
Rank 1
answered on 19 Dec 2012, 12:06 AM
Hi,

I’m using with all last updates : win 7 64bit, VS 2012 with Silverlight 5, Sql server 2008 R2 and RadControls for Silverlight Q3 2012 SP1.


I get these attached errors with your Solution (2037ce1d-f4be-4060-9ba3-0f786df50df3_ScheduleView-DB-example).

Please help me if possible.
0
Yana
Telerik team
answered on 19 Dec 2012, 03:06 PM
Hello,

You just need to add a reference to Telerik.Windows.Controls.dll assembly in the web project ( ScheduleView_DB_CS.Web ).

Try it and let us know whether this helps.

All the best,
Yana
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
ScheduleView
Asked by
Alan Mosley
Top achievements
Rank 1
Answers by
Yana
Telerik team
Alan Mosley
Top achievements
Rank 1
Mr
Top achievements
Rank 1
Share this question
or