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

2 posts, 0 answers
  1. Lukrs
    Lukrs avatar
    39 posts
    Member since:
    Sep 2012

    Posted 07 Sep 2008 Link to this post

    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


  2. Lukrs
    Lukrs avatar
    39 posts
    Member since:
    Sep 2012

    Posted 07 Sep 2008 Link to this post

    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!


  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top