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

[Solved] Updating Rad Schedular

0 Answers 109 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Adi
Top achievements
Rank 1
Adi asked on 14 May 2009, 07:28 AM

I struct in a problem of updating  in Rad Schedular..
i insert a appointment in the databse SQL Server. in that i take the Id of appointment byusing " e.Appointmnets.ID" and store it in the db..
like
.aspx file

 

<

telerik:RadScheduler runat="server" ID="RadScheduler1" Width="99%" TimeZoneOffset="03:00:00"

 

 

 

 

 

OnAppointmentInsert="RadScheduler1_AppointmentInsert" OnAppointmentUpdate="RadScheduler1_AppointmentUpdate"

 

 

 

 

 

OnAppointmentDelete="RadScheduler1_AppointmentDelete"

 

 

 

 

 

DataEndField="End" DataKeyField="ID" DataRecurrenceField="RecurrenceRule"

 

 

DataRecurrenceParentKeyField="RecurrenceParentID" DataStartField="Start"

 

 

DataSubjectField="Subject" HoursPanelTimeFormat="htt" ValidationGroup="RadScheduler1" style="left: -1px; top: 16px" Height="397px" >

 

 

 

 

 

<TimelineView UserSelectable="False" />

 

 

</telerik:RadScheduler>

.aspx.cs

 

 

protected void RadScheduler1_AppointmentInsert(object sender, SchedulerCancelEventArgs e)

 

{

 

e.appointments.ID
//and some SQl query to store the data in Db
}
now whenever i update that same appointment  by using function

 

 

protected void RadScheduler1_AppointmentUpdate(object sender, AppointmentUpdateEventArgs e)

 

{

 

AppointmentInfo ai = FindById(e.ModifiedAppointment.ID);

 

ai.CopyInfo(e.ModifiedAppointment);

 

//some db query

}
its iD value is changed by itself
here the event has generated the new ID
please give some idea how to get the previous ID that i had stored in the db

so that i will update it in Databsae also

No answers yet. Maybe you can help?

Tags
Scheduler
Asked by
Adi
Top achievements
Rank 1
Share this question
or