Friday, November 11, 2011

How to hide/disable Day/Month/WorkWeek/Timeline views in devexpress Aspxscheduler


How to hide DayView/WorkWeekView/Month View/Timeline Views in deexpress ASPxScheduler.
How to disable DayView/WorkWeekView/Month View/Timeline Views in deexpress ASPxScheduler.

Here schTaskCalendar is ASPxScheduler ID which is used in our requirement

Use the following code lines in your Page_Load. it will hides/disables  DayView/WorkWeekView from your ASPxScheduler control.

Code:

protected void Page_Load(object sender, EventArgs e)
{
  DevExpress.Web.ASPxScheduler.SchedulerViewRepository baseviews = schTaskCalendar.Views;
            baseviews.DayView.Enabled = false;
            baseviews.WorkWeekView.Enabled = false;
}


1 comment:

  1. Hi, Great.. Tutorial is just awesome..It is really helpful for a newbie like me.. I am a regular follower of your blog. Really very informative post you shared here. Kindly keep blogging. If anyone wants to become a .Net developer learn from Dot Net Online Training from India. or learn thru ASP.NET Essential Training Online . Nowadays Dot Net has tons of job opportunities on various vertical industry.
    JavaScript Online Training from India

    ReplyDelete