How to hide clear icon on date range picker


Hello good morning,

Is there a way to hide the clear icon on the date range picker? I added allowEdit="false" and it works good, but I also need to hide the "X" icon, I tried with some css styles but I didn't figure it out:


Please see the image above, that is what I need to remove/hide in such way that, the user won't see it.

Thanks in advance!

3 Replies 1 reply marked as answer

PM Ponmani Murugaiyan Syncfusion Team February 12, 2021 08:37 AM UTC

Hi Rony,

Greetings from Syncfusion support. 

We suggest you to disable the showClearButton property of DateRangePicker component which specifies whether to show or hide the clear icon.  


Please get back us if you need further assistance. 

Regards, 
Ponmani M 


Marked as answer

RD Rony De Sousa February 12, 2021 08:10 PM UTC


Hi Ponmani,

Thanks for sharing the documentation link! Somehow that property doesn't show up when I try to type it, using the intellisense, but it works, I added it manually and it worked!

Thanks!


PM Ponmani Murugaiyan Syncfusion Team February 15, 2021 07:10 AM UTC

Hi Rony, 

Thanks for the update. We are glad to hear that the provided suggestion helps you in achieving your requirement.  

Regards, 
Ponmani M 


Loader.
Up arrow icon