How to hide Today button?

Hi

How can I hde the today button on the sfDateTimeEdit control (last version)?

Thanks for the help.

6 Replies 1 reply marked as answer

BR Bharathi Rajakantham Syncfusion Team December 14, 2020 11:35 AM UTC

Hi Daniel,

Thanks for Contacting Syncfusion Support,

We have checked the reported query “How to hide today button in DateTimeEdit control”.Prepared a simple sample for hiding the TodayButton of DateTimeEdit control.Please check the sample and code snippet for your reference.

Code snippet:

 
      private void DateTimeEdit_Loaded(object sender, RoutedEventArgs e) 
        { 
 
            Button button = dateTimeEdit.Template.FindName("todayButton", dateTimeEdit) as Button; 
 
            if (button != null) 
 
            { 
                button.Visibility = Visibility.Collapsed; 
            } 

        }

 
 
Image : 
 
 
Please try the above solution and let us know if you need any further assistance on this.We will be glad to assist you. 
 
Regards, 
Bharathi R 


Marked as answer

VO Vicent Ortega replied to Bharathi Rajakantham April 30, 2025 08:47 AM UTC

I can't believe there isn't a property to just hide the Today button...

I have plenty of DateTimeEdit components in my form. Do I have to hide their Today button programatically on each one?


Please, implement a property "ShowTodayButton" on the component. Not all dates are near the "today" range.


It's also absurd to have all that blank space on the bottom of the calendar if the "Today" and "Clear" buttons are hidden.



BS Bhaskar Suresh Syncfusion Team May 2, 2025 12:17 PM UTC

Hi Vicent Ortega,


We are currently validating your reported query and will provide an update on or before May 6th, 2025. We appreciate your patience until then.


Regards,

Bhaskar Suresh



BS Bhaskar Suresh Syncfusion Team May 6, 2025 02:12 PM UTC

Hi Vicent Ortega,


We have prepared a workaround to override the style of the DateTimeEdit control to remove the footer of the control. Please refer to the attached sample and let us know if you have any concerns.


We have also analyzed your requirement for “Need to provide support to customize the TodayButton visibility in DateTimeEdit”. We will share the feature request details to you regarding this on or before May 8th, 2025.


Regards,

Bhaskar Suresh


Attachment: DateTimeEdit_Today_6f06bab6.zip


BS Bhaskar Suresh Syncfusion Team May 7, 2025 01:33 PM UTC

Hi Vicent Ortega,


We have analyzed your requirement for “Support to show/hide the Today Button in WPF DateTimeEdit control”. We have logged a feature request for the same. We will implement this feature in any of our upcoming releases.


At the planning stage for every release cycle, we review all open features and identify features for implementation based on specific parameters including product vision, technological feasibility, and customer interest. We will let you know when this feature is implemented. We appreciate your patience until then.


Thank you for requesting this feature and helping us define it. We are always trying to make our products better and feature requests like yours are a key part of our product growth efforts.


Feedback link: Support to show/hide the Today Button in WPF DateTimeEdit control in WPF | Feedback Portal

If you have any more specifications/suggestions for the feature request, you can add them as a comment in the portal and cast your vote to make it count.


Regards,

Bhaskar Suresh



YP Yolanda Phelan May 9, 2025 07:04 AM UTC

Having trouble customizing the sfDateTimeEdit control? I understand the desire to streamline the interface and remove that "today" button. It's like wanting to draft the perfect player in Retro Bowl – you need precise control! I'm not familiar with that specific control, but often these things have a property setting or style that controls the display of such elements.


Loader.
Up arrow icon