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

Lightswitch Radschedule view Refresh Problems

1 Answer 79 Views
ScheduleView
This is a migrated thread and some comments may be shown as answers.
Dan
Top achievements
Rank 1
Dan asked on 16 Feb 2012, 01:53 PM
I used the following references in order to built a vb.net application.
http://www.paulspatterson.com/technology/lightswitch/ls-telerik-radscheduler/
http://www.telerik.com/products/silverlight/resources/lightswitch-support.aspx 

Because I need custom inputs for my appointments (i related appointments with Clients, employees etc) I use lightswitch screens to insert appointments & modal windows to select clients & dropdown to select employees...so i choosed to insert appointments without double clicking the radschedule view control..(i just use it for appointment visualization purposes)

How can i Refresh the Rad schedule calendar control when i save an appointment. For now i am using the following code, but is a very resource consuming process:
====
Me.Save()
CloseModalWindow("AddAppointment")
Me.Refresh()
====

If i try to use
====
Schedules_Filtered.Refresh()
====
the screen results are refreshed but the radschedule calendar is not.

can you please help?

1 Answer, 1 is accepted

Sort by
0
Ivo
Telerik team
answered on 21 Feb 2012, 11:56 AM
Hello,

When editing or adding an appointment through code you will have to use RadScheduleView's methods BeginEdit() and Commit(). Here is an example:
...
'Add appointment to source
...
If Me.radScheduleView.BeginEdit(appointment) Then
 Me.radScheduleView.Commit()
End If
...

Greetings,
Ivo
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
Tags
ScheduleView
Asked by
Dan
Top achievements
Rank 1
Answers by
Ivo
Telerik team
Share this question
or