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

Problem RadScheduler and Login Control

1 Answer 104 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Erdem
Top achievements
Rank 1
Erdem asked on 29 Apr 2012, 01:53 AM
Hii everyone. 
I want to do if user(doctor username) login then radscheduler only own appointmen allow delete,insert,update(i cant do). There is a combobox where did u select policilinic and doctors view(i do it).Normal user can not delete and update.(i do it) 
 i upload my files picture:::
Codes:::
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;


namespace BookingServices
{
    public partial class _Default : System.Web.UI.Page
    {
        
        
        protected void Page_Load(object sender, EventArgs e)
        {
            RadScheduler1.GroupBy = RadComboBox1.SelectedValue;
            
        }


        protected void RadScheduler1_AppointmentCreated(object sender, Telerik.Web.UI.AppointmentCreatedEventArgs e)
        {
            foreach (Telerik.Web.UI.Resource resource in e.Appointment.Resources)
            {
                if (resource.Type == "Doctor")
                {
                    e.Appointment.CssClass=resource.Text.Replace(' ','_');
                
                }
            
            }


        }


           




       


    }
}

1 Answer, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 30 Apr 2012, 05:58 AM
Hello Erdem,

You can set the AllowDelete and AllowEdit properties of the appointment conditionally in AppointmentDataBound. Would that help you achieve your requirement?

Regards,
Peter
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Scheduler
Asked by
Erdem
Top achievements
Rank 1
Answers by
Peter
Telerik team
Share this question
or