Lightswitch Radschedule view Refresh Problems

2 posts, 0 answers
  1. Dan
    Dan avatar
    2 posts
    Member since:
    Jan 2012

    Posted 16 Feb 2012 Link to this post

    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?
  2. Ivo
    Admin
    Ivo avatar
    390 posts

    Posted 21 Feb 2012 Link to this post

    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 >>
  3. DevCraft banner
Back to Top