I am programming a radScheduler application where you have to register and login to view, create and update new appointments. I have set these properties to radScheduler on login.
RadScheduler1.AllowDelete = false;
RadScheduler1.AllowEdit = false;
RadScheduler1.AllowInsert = true;
// I also have a code that allows users to create appointments just under their UserID
Of course every registered user can only edit and delete his own appointments, so i have created RadScheduler1_AppointmentCreated event, which occurs for every event existing in the current view.
protected void RadScheduler1_AppointmentCreated(object sender, AppointmentCreatedEventArgs e)
{
if (Session["logiran"] != null)
{
if (Int32.Parse(Session["status"].ToString()) != 1)
{
foreach (Resource resource in e.Appointment.Resources)
{
if (resource.Type == "Uporabnik")
{
if (resource.Key.ToString() == Session["UserID"].ToString())
{
e.Appointment.AllowEdit = true;
e.Appointment.AllowDelete = true;
}
}
}
}
}
}
Everything works fine, I can edit, delete, move the appointment, except for the grabber, which allows the user to resize the appointment. Grabber is just not shown.
I am working on this problem for 2 days now, and I am getting tired of it, so I would be pleased if someone helps me on this one! I just can't fix it.
thanks in advance, Luka
RadScheduler1.AllowDelete = false;
RadScheduler1.AllowEdit = false;
RadScheduler1.AllowInsert = true;
// I also have a code that allows users to create appointments just under their UserID
Of course every registered user can only edit and delete his own appointments, so i have created RadScheduler1_AppointmentCreated event, which occurs for every event existing in the current view.
protected void RadScheduler1_AppointmentCreated(object sender, AppointmentCreatedEventArgs e)
{
if (Session["logiran"] != null)
{
if (Int32.Parse(Session["status"].ToString()) != 1)
{
foreach (Resource resource in e.Appointment.Resources)
{
if (resource.Type == "Uporabnik")
{
if (resource.Key.ToString() == Session["UserID"].ToString())
{
e.Appointment.AllowEdit = true;
e.Appointment.AllowDelete = true;
}
}
}
}
}
}
Everything works fine, I can edit, delete, move the appointment, except for the grabber, which allows the user to resize the appointment. Grabber is just not shown.
I am working on this problem for 2 days now, and I am getting tired of it, so I would be pleased if someone helps me on this one! I just can't fix it.
thanks in advance, Luka