Hi,
It looks like e.Appointment is empty when you bind the scheduler for the second time. The following code is heavily simplified, but it does show the problem:
Am I missing something or is it a bug?
Thanks,
Michel
It looks like e.Appointment is empty when you bind the scheduler for the second time. The following code is heavily simplified, but it does show the problem:
| protected void Page_Load(object sender, EventArgs e) |
| { |
| if (!this.IsPostBack) |
| this.BindAppointmentData(); // first databind |
| } |
| private void BindAppointmentData() |
| { |
| //database SELECT query is done here, a dataset is the result |
| this.RadScheduler1.DataSource = {the dataset}; |
| } |
| protected void RadScheduler1_AppointmentInsert(object sender, Telerik.Web.UI.SchedulerCancelEventArgs e) |
| { |
| //database INSERT query is done here, new record is physically saved to database |
| this.BindAppointmentData(); //second databind |
| } |
| protected void RadScheduler1_AppointmentDataBound(object sender, Telerik.Web.UI.SchedulerEventArgs e) |
| { |
| // e.Appointment is filled here on the first databind, but empty on the second |
| //here, i manipulate some properties of e.Appointment (subject and tooltip) |
| } |
Am I missing something or is it a bug?
Thanks,
Michel