This question is locked. New answers and comments are not allowed.
Hello,
I have three RadGridViews that list appointments from a RadScheduleView. From within the RowActivated event handler of the RadGridViews I take the selected appointment (SqlAppointment) and execute the EditAppointment command:
This works as expected except for two things.
What am I missing?
Thanks
I have three RadGridViews that list appointments from a RadScheduleView. From within the RowActivated event handler of the RadGridViews I take the selected appointment (SqlAppointment) and execute the EditAppointment command:
private void rgvAppointments_RowActivated(object sender, Telerik.Windows.Controls.GridView.RowEventArgs e)
{
GridViewRowItem row = e.Row as GridViewRowItem;
TextBlock sqlAppointmentId = row.Cells[0].Content as TextBlock;
int apptID = Convert.ToInt32(sqlAppointmentId.Text);
foreach (SqlAppointment a in this.rgvAppointments.Items)
{
if (a.SqlAppointmentId == apptID)
{
RadScheduleViewCommands.EditAppointment.Execute(a, this.radScheduleView1);
return;
}
}
}This works as expected except for two things.
- When the edit dialog opens, Resources associated with the appointment don't show up. It's like the appointment has no resources.
- When I click 'Ok' from the edit dialog the RadGridView reflects the changes made, but the RadScheduleView does not. Also, if I close the application and run it again, the changes are lost. So anything that is done in the edit dialog is not getting back to the database.
What am I missing?
Thanks