Hiding the Today button

I am using the scheduler control in MVC and when date button is clicked on the header toolbar the date opens up. There is a 'Today' button shown on the caledar control in the toolbar which I need to remove.

1. if the today button is clicked it redirects to my page, which is ok, except my page requires parameters to work and i am not able to control the today button click.
2. how can i hide this button when the date selector is first opened, once it has been opened the first time i am able to hidethe footer using jquery but it is always there when the calendar selector is first opened.

Any help would be gratefully recieved.


1 Reply 1 reply marked as answer

NR Nevitha Ravi Syncfusion Team March 30, 2021 09:36 PM UTC

Hi Richard, 

Greetings from Syncfusion support. 

Since the calendar is rendered dynamically when clicking on the date range, the today button can be hided using created event. Please try the following sample and code snippet. 

  created: function(args) { 
    this.element.querySelector(".e-date-range").click(); 
    this.element.querySelector(".e-footer-container").style.display = "none"; 
    this.element.querySelector(".e-date-range").click(); 
  } 

Kindly let us know if this comes close to your requirement. 

Regards, 
Nevitha 


Marked as answer
Loader.
Up arrow icon