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

Set Default Value for TimeMarkerID

1 Answer 41 Views
ScheduleView
This is a migrated thread and some comments may be shown as answers.
Brandon
Top achievements
Rank 1
Brandon asked on 16 Sep 2015, 09:21 PM

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?

Thanks,

Brandon

 

1 Answer, 1 is accepted

Sort by
0
Rosi
Telerik team
answered on 18 Sep 2015, 08:28 AM
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: http://www.telerik.com/help/wpf/radscheduleview-populating-with-data-binding-to-db-overview.html

Regards,
Rosi
Telerik
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
Tags
ScheduleView
Asked by
Brandon
Top achievements
Rank 1
Answers by
Rosi
Telerik team
Share this question
or