The Syncfusion® native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
UDUdhayaKumar Duraisamy Syncfusion Team April 2, 2023 07:30 AM UTC
Query 1: I want to close the datetime picker to get close by
itself without clicking on apply button.
You can use the selectevent to check whether the
user has selected endDate or not. If the user has selected endDate, you can
programmatically click the Apply button, which will trigger the popup to
close. Please refer to the code snippet below for more information.
You can use the cssClass property as 'e-small', which will make
the component size small.
<ejs-daterangepicker
#drp
(select)="Onselect($event)"
(open)="OpenHandler($event)"
cssClass="e-small"
></ejs-daterangepicker>
Query 3: to always get open on up side
We would like to inform you that our EJ2 DateRangePicker popup
will be opened under the input component. If there is not enough space to
show the popup, it will be displayed at the top of the input element. This is
the default behavior of the popup component.
If you wish to alter the position of the popup, you may utilize
the open event of the DateRangePicker component as illustrated below. In the
open event, you can designate the X & Y popup position as 'left' & ‘top’
and assign a numerical value to offsetX and offsetY position to
correctly position the DateRangePicker popup according to your needs.