Cannot get scheduleview to work with domain service

6 posts, 0 answers
  1. Alan Mosley
    Alan Mosley avatar
    200 posts
    Member since:
    Apr 2010

    Posted 01 Oct 2012 Link to this post

    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

  2. Yana
    Admin
    Yana avatar
    4554 posts

    Posted 04 Oct 2012 Link to this post

    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.

  3. DevCraft banner
  4. Alan Mosley
    Alan Mosley avatar
    200 posts
    Member since:
    Apr 2010

    Posted 04 Oct 2012 Link to this post

    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
  5. Alan Mosley
    Alan Mosley avatar
    200 posts
    Member since:
    Apr 2010

    Posted 06 Oct 2012 Link to this post

    OK solved this problem
    e.Appointment.UniqueId 'did not work
      
    Dim a As Appointment = CType(e.Appointment, Appointment)
    a.UniqueId 'did work
  6. Mr
    Mr avatar
    2 posts
    Member since:
    Mar 2011

    Posted 18 Dec 2012 Link to this post

    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.
  7. Yana
    Admin
    Yana avatar
    4554 posts

    Posted 19 Dec 2012 Link to this post

    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.

Back to Top
DevCraft banner