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

No visual update after changing category

2 Answers 94 Views
ScheduleView
This is a migrated thread and some comments may be shown as answers.
John
Top achievements
Rank 1
John asked on 05 Nov 2011, 10:26 AM
Hello,

I need to change the category of an appointment by the fly without using the dialog. But the ScheduleView will not update visual before switching the view (e.g. switching to next day and return). How can I force an update?

Here my simple code for changing the categories.

foreach (Appointment app in this.dataModel.Appointments)
{                 
     app.Category = (Category)this.myCategoriesHT["CategoryID"];
}

2 Answers, 1 is accepted

Sort by
0
Rosi
Telerik team
answered on 07 Nov 2011, 09:39 AM
Hello John,

To edit appointment via code you have to call BeginEdit and Commit methods of RadScheduleView.
For more details, please follow the link below:

http://www.telerik.com/help/wpf/radscheduleview-end-user-capabilities-edit-appointment.html

Best wishes,
Rosi
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
John
Top achievements
Rank 1
answered on 07 Nov 2011, 10:47 AM
Thanks - it work's, but sometime I need to scroll the ScheduleViewer first, to see the results. But for the moment it's ok. Hope my other question will be answered also fine like this :).
Tags
ScheduleView
Asked by
John
Top achievements
Rank 1
Answers by
Rosi
Telerik team
John
Top achievements
Rank 1
Share this question
or