I want to add some data to my scheduler with my common RadScheduler1_AppointmentInsert method but somehow its not working ... maybe I'm totally wrong but I thing that should work some how like that ...
do i need to parse some thing bc
Tilte = Varchar
FromDate/ToDate = DateTime
RecurrenceRule/RecurrenceRuleID = int
Houers = float
thanks for help and fast answer
do i need to parse some thing bc
Tilte = Varchar
FromDate/ToDate = DateTime
RecurrenceRule/RecurrenceRuleID = int
Houers = float
protected
void
RadScheduler1_AppointmentInsert(
object
sender, SchedulerCancelEventArgs e)
{
if
(ExceedsLimit(e.Appointment))
{
e.Cancel =
true
;
RegisterScript();
}
else
{
int
id = HtUser.GetUserIdByLogin(Page.User.Identity.Name);
//e.Appointment.Attributes.Add("UserId", id.ToString());
HtVacationDay vacationDay =
new
HtVacationDay();
vacationDay.Title = e.Appointment[
"Title"
];
vacationDay.FromDate =e.Appointment[
"FromDate"
];
vacationDay.ToDate = e.Appointment[
"ToDate"
];
vacationDay.RecurrenceRule = e.Appointment[
"RecurrenceRule"
];
vacationDay.RecurrenceRuleID = e.Appointment[
"RecurrenceRuleID"
];
vacationDay.Hours = e.Appointment[
"Hours"
];
}
}