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

Changing appointment time and save it in database

3 Answers 171 Views
Scheduler and Reminder
This is a migrated thread and some comments may be shown as answers.
Frederico Fernandes
Top achievements
Rank 1
Frederico Fernandes asked on 29 Sep 2011, 11:47 AM
Hi,

When i want to change appointment time without using Edit Appointment Dialog, which event is triggered?? I want to know which event is triggered because i want to update time in database.

3 Answers, 1 is accepted

Sort by
0
Ivan Todorov
Telerik team
answered on 30 Sep 2011, 05:26 PM
Hi Frederico,

Thank you for your question.

When an Appointment's property is changed, it notifies the collection which contains it. Therefore, you should handle the CollectionChanged event of the Appointments collection. The following code snippet demonstrates how you can achieve this:
this.radScheduler1.Appointments.CollectionChanged += new NotifyCollectionChangedEventHandler(Appointments_CollectionChanged);
 
void Appointments_CollectionChanged(object sender, Telerik.WinControls.Data.NotifyCollectionChangedEventArgs e)
{
    if (e.Action == Telerik.WinControls.Data.NotifyCollectionChangedAction.ItemChanged)
    {
        if (e.PropertyName == "Start" || e.PropertyName == "Duration")
        {
            //do something
        }
    }
}

I hope you find this useful. If you have any further questions, do not hesitate to ask.

Kind regards,
Ivan Todorov
the Telerik team

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

0
Bhaskara Rao
Top achievements
Rank 1
answered on 24 Nov 2012, 07:28 AM
i am trying to insert the appointment in the database how can i do that please post the code here
0
Ivan Todorov
Telerik team
answered on 29 Nov 2012, 07:34 AM
Hi Bhaskara,

A full walkthorugh of how to retrieve and persists data to a database is available in our online documentation.

I hope this helps.

All the best,
Ivan Todorov
the Telerik team
Q3’12 of RadControls for WinForms is available for download (see what's new). Get it today.
Tags
Scheduler and Reminder
Asked by
Frederico Fernandes
Top achievements
Rank 1
Answers by
Ivan Todorov
Telerik team
Bhaskara Rao
Top achievements
Rank 1
Share this question
or