This question is locked. New answers and comments are not allowed.
Hi,
I'm using the trial of Telerik Silverlight Version: Q1 2012 (v2012.1.215, Feb. 15, 2012)
I have the following situation:
I've overwritten the AppointmentCreating of the scheduler, adding my own dialog window. In the constructor of this window I pass the IAppointment object I receive from the AppointmentCreatingEventArgs (-> e.Appointment).
I have added a property in my own dialog called Appointment, and in the constructor it receives the value of the IAppointment that is created. So far all good.
In my custom dialog I have added a RadDateTimePicker to display the start time of the appointment that's been added. I tried binding the value of the Appointment to it, like so:
This does not work. For some reason it keeps printing 1/01/1000 0:00 (so the binding works, but the value is incorrect). So looking through the debugger I found the following (see attachment).
The property Start has the correct value, but the local variable start has the wrong value.
Apparently start (the variable) is taken to complete the binding and not Start (the property), which is understandable since VB.NET doesn't have capitalisation, but problematic since it contains an incorrect value..
This is the case when getting the object from the AppointmentCreatingEventArgs, so even without assigning it the problem exists.
Any ideas how I can complete this binding without having to do
which does work correctly?
Much appreciated,
Wim
I'm using the trial of Telerik Silverlight Version: Q1 2012 (v2012.1.215, Feb. 15, 2012)
I have the following situation:
I've overwritten the AppointmentCreating of the scheduler, adding my own dialog window. In the constructor of this window I pass the IAppointment object I receive from the AppointmentCreatingEventArgs (-> e.Appointment).
I have added a property in my own dialog called Appointment, and in the constructor it receives the value of the IAppointment that is created. So far all good.
In my custom dialog I have added a RadDateTimePicker to display the start time of the appointment that's been added. I tried binding the value of the Appointment to it, like so:
SelectedValue=
"{Binding ElementName=SSID, Path=Appointment.Start}"
This does not work. For some reason it keeps printing 1/01/1000 0:00 (so the binding works, but the value is incorrect). So looking through the debugger I found the following (see attachment).
The property Start has the correct value, but the local variable start has the wrong value.
Apparently start (the variable) is taken to complete the binding and not Start (the property), which is understandable since VB.NET doesn't have capitalisation, but problematic since it contains an incorrect value..
This is the case when getting the object from the AppointmentCreatingEventArgs, so even without assigning it the problem exists.
Any ideas how I can complete this binding without having to do
dpStartTijd.SelectedValue = Appointment.Start
Much appreciated,
Wim