Can Calendar part of DateRangePicker be shown by default (without clicking on calendar icon)

Hello,

Is it possible to display the DateRangePicker with the calendar part open by default ie without clicking on the calendar icon 

so it would look like below on open

as opposed to 


1 Reply 1 reply marked as answer

JM Jeyanth Muthu Pratheeban Sankara Subramanian Syncfusion Team September 4, 2020 04:58 PM UTC

Hi Vincent,

 
Greetings from Syncfusion support.


We have checked your requirement. We would like to know you that you can open the popup of the daterangepicker programmatically using show() method. In the below example we have opened the popup of Daterangepicker in the Created event which will trigger when control is rendered. Please find the sample and code snippet below for your reference.


 
<SfDateRangePicker @ref="@DateRangeInstance" ID="daterange"> 
    <DateRangePickerEvents Created="OnCreated"></DateRangePickerEvents> 
</SfDateRangePicker>

 
@code{         
    public SfDateRangePicker DateRangeInstance { get; set; } 
    public void OnCreated() 
    { 
        this.DateRangeInstance.Show(); 
    } 
 
} 



Hope this meets your requirements. Please let us know if you need any further assistance on this.

Regards, 
Jeyanth. 


Marked as answer
Loader.
Up arrow icon