EnableCustomAttributeEditing="true"
CustomAttributeNames="Color
I have added an attribute wich I Bind and it work fine
protected void rdsSchedule_FormCreated(object sender, SchedulerFormCreatedEventArgs e)
{
if((e.Container.Mode == SchedulerFormMode.AdvancedEdit) || (e.Container.Mode == SchedulerFormMode.AdvancedInsert))
{
ddlColor.SelectedValue = e.Appointment.Attributes[
"Color"];
}
}
but it is empty in the update, my database receives an empty string for Color
protected void rdsSchedule_AppointmentUpdate(object sender, AppointmentUpdateEventArgs e)
{
this.SqlProcessor.AddParameter("ID", e.Appointment.ID);
this.SqlProcessor.AddParameter("Users_ID", this.CurrentUserId);
this.SqlProcessor.AddParameter("Subject", e.ModifiedAppointment.Subject);
this.SqlProcessor.AddParameter("Description", e.ModifiedAppointment.Description);
this.SqlProcessor.AddParameter("Color", e.ModifiedAppointment.Attributes["Color"]);
this.SqlProcessor.AddParameter("DateStart", xStart.ToString("yyyy-MM-dd HH:mm"));
this.SqlProcessor.AddParameter("DateEnd", xEnd.ToString("yyyy-MM-dd HH:mm"));
this.SqlProcessor.Execute("stpUsersSchedule", CommandType.StoredProcedure);
}
Am I missing something