We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

How to define the views to display

Hi Support:

We need to display the schedule with only the following views:

Day, Week, Month

and hide the rest (Agenda, etc).

We dont know how to define these in the views property

<ej-schedule views="">

Thanks in advanced.

David

3 Replies

KK Karthigeyan Krishnamurthi Syncfusion Team December 23, 2016 08:37 AM UTC

Hi David, 
 
Thank you for contacting Syncfusion support. 
 
Scheduler view can be customized using views property, kindly use the below code example to the restrict the views in Schedule. 
 
<Code> 
@{List<string> view = new List<string>() { "Day", "Week", "Month"};}   
 
<ej-schedule id="Schedule1" width="100%" height="525px" current-date="new DateTime(2015, 11, 8)" views="view" current-view="Week"> 
    <e-appointment-settings datasource="Appoint" id="Id" subject='"Subject"' start-time='"StartTime"' end-time='"EndTime"' description='"Description"' all-day='"AllDay"' recurrence='"Recurrence"' recurrence-rule='"RecurrenceRule"'> 
    </e-appointment-settings> 
</ej-schedule> 
</Code> 
 
Regards, 
Karthigeyan 



DS dsapo December 23, 2016 03:13 PM UTC

Thanks for your quick response.


SE Sellakumar Syncfusion Team December 27, 2016 04:03 PM UTC

Hi David, 
  
Thanks for your update. Kindly let us know, if you need any further assistance - we are happy to assist you. 
  
Regards, 
Sellakumar K

Loader.
Live Chat Icon For mobile
Up arrow icon