Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6228953
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T09:28:43+00:00 2026-05-24T09:28:43+00:00

I have develop a Telerik Radscheduler in that i have write the code like

  • 0

I have develop a Telerik Radscheduler in that i have write the code like below in that i want disable/Enable the perticuler time-slot for an event,in this disable is working fine but enable not working i can’t understand why it is not enable to allow-insert.please help me where i need to change to resolve this problem…

        protected void RadScheduler1_TimeSlotCreated1(object sender, TimeSlotCreatedEventArgs e)
  {

    //Getting Business hour time
    mybusinesscalendarEntities objEntity = new mybusinesscalendarEntities();
    var Result = from bhours in objEntity.businesshours where bhours.BusinessId == businessid select bhours;
    if (Result.Count() > 0)
    {
        var Hours = (from bhours in objEntity.businesshours where bhours.BusinessId == businessid select bhours).First();


        //Get particular day businee hour timings and disable the time slot 

        string Day = System.DateTime.Today.DayOfWeek.ToString();
        if (Day == "Monday")
        {
            string WorkDay = Hours.MondayFromTime.Value.ToShortTimeString();
            string WorkDayStart = WorkDay.Remove(WorkDay.Length - 2, 2);
            string WorkDayEnd = Hours.MondayToTime.Value.ToShortTimeString();
            string WorkDayEndTime = WorkDayEnd.Remove(WorkDayEnd.Length - 2, 2);
            if ((e.TimeSlot.Start.TimeOfDay < TimeSpan.Parse(WorkDayStart.Trim())) || (e.TimeSlot.Start.TimeOfDay > TimeSpan.Parse(WorkDayEndTime.Trim())))
            {
                e.TimeSlot.CssClass = "Disabled";
                RadScheduler1.ReadOnly = true;
            }

            else

            {

                RadScheduler1.ReadOnly = false;
                RadScheduler1.AllowInsert = true;
                RadScheduler1.AllowEdit = true;
                RadScheduler1.AllowDelete = true;

            }
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T09:28:45+00:00Added an answer on May 24, 2026 at 9:28 am

    If when your last timeslot is created (last time event is fired) this part evaluates to true.

            if ((e.TimeSlot.Start.TimeOfDay < TimeSpan.Parse(WorkDayStart.Trim())) || (e.TimeSlot.Start.TimeOfDay > TimeSpan.Parse(WorkDayEndTime.Trim())))
            {
                e.TimeSlot.CssClass = "Disabled";
                RadScheduler1.ReadOnly = true;
            }
    

    Then your entire scheduler will be in read only mode. This means no editing inserting deleting moving etc.

    Your intention seems to be to disabled specific timeslots. I dont think you intend to set these properties in this particular event.

                RadScheduler1.ReadOnly = false;
                RadScheduler1.AllowInsert = true;
                RadScheduler1.AllowEdit = true;
                RadScheduler1.AllowDelete = true;
    

    Test by commenting out the lines that set the readonly, allowinster, allowedit, allowdelete properties since they are not per timeslot, rather for the entire scheduler

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have develop small Asp.net MVC3 application using Telerik rad Controls with in that
I have to develop an iPad TV guide that looks like What's On TV
I am completely new in Windowsphone7.i have develop sample application in that i want
I have to develop an application for windows that will enable controlling the mouse
I have to develop an application using C#.net that has to be run once
I have to develop software for a USB scale that, when you press a
I have to develop a tool in C# that retrieves some data from an
I have develop a function in PYTHON that sends emails with one .doc attachment
I have to develop one program that consists data manipulation (retrieve data, update data
I have to develop a program in C# so that when my Printer is

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.