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. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

in month view how can i change date picker property

Thread ID:

Created:

Updated:

Platform:

Replies:

149546 Nov 29,2019 11:39 AM UTC Dec 2,2019 11:32 AM UTC Angular - EJ 2 1
loading
Tags: Schedule
Harsh
Asked On November 29, 2019 11:39 AM UTC

I want to display Date picker in Month view. Who Display Dates but It displays only Months and year now I want to change its property how can I change. 

I want to date like this in Month View:-
https://ibb.co/qytWm3r

But It Displays Like this:-
https://ibb.co/JrwJ1s2

Vinitha Devi Murugan [Syncfusion]
Replied On December 2, 2019 11:32 AM UTC

Hi Harsh, 
 
Syncfusion Greetings. 
 
We achieved your requirement by making use of actionComplete event of our scheduler and same can be available in below link. 
 

  onActionComplete(args) { 
    if (this.scheduleObj.currentView === "Month") { 
      (this.scheduleObj.element.querySelectorAll('.e-schedule-toolbar .e-date-range')[0] as any).click(); 
      var calendar = (this.scheduleObj.element.querySelectorAll('.e-header-calendar')[0] as any).ej2_instances[0]; 
      // To show the dates instead of month in month view 
      calendar.deth = "Month"; 
      calendar.start = "Month"; 
      (this.scheduleObj.element.querySelectorAll('.e-schedule-toolbar .e-date-range')[0] as any).click(); 
    } 


Regards, 
M.Vinitha devi 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon