Set Default Value for TimeMarkerID

2 posts, 0 answers
  1. Brandon
    Brandon avatar
    18 posts
    Member since:
    Nov 2009

    Posted 16 Sep 2015 Link to this post

    I'm trying to set an appointment's default value for TimeMarkerID for new appointments.  When I add code in either the SqlAppointment's constructor or ViewModels' OnAppointmentsCollectionChanged and then hit the save button on the appointment it appears to try and save the appointment twice.  The second appointment has all values blank except for the timemarker default value.  I then get an exception of 'The conversion of a datetime2 data type to a datetime data type resulted in an out-of-range value.' because the start/end times are 1/1/0001.

    Note: Neither appointment actually saves to SQL.

    Is there a way to set the default value of TimeMarkerID?




  2. Rosi
    Rosi avatar
    2529 posts

    Posted 18 Sep 2015 Link to this post

    Hello Brandon,

    Is it possible to provide more details about the issue? How the TimeMarker Id is defined? I suggest you open a support ticket and send us sample running project illustrating the issue. We will review it and provide you with more technical suggestions.

    Meanwhile I suggest you review our With Database example- This example demonstrates how to bind the RadScheduleView to a database. For more details on the approach, please refer to the following documentation:

    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 Feedback Portal and vote to affect the priority of the items
Back to Top