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

Grabber not shown on e.Appointment.AllowEdit set to true

1 Answer 32 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Lukrs
Top achievements
Rank 2
Lukrs asked on 07 Sep 2008, 12:52 PM
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


1 Answer, 1 is accepted

Sort by
0
Lukrs
Top achievements
Rank 2
answered on 07 Sep 2008, 01:26 PM
Hi!,

Every time I post a thread on a forum, I resolve the problem in a blink of an eye ;)

I used RadScheduler1_AppointmentDataBound instead of RadScheduler1_AppointmentCreated.

Silly me, but problem solved!


Tags
Scheduler
Asked by
Lukrs
Top achievements
Rank 2
Answers by
Lukrs
Top achievements
Rank 2
Share this question
or