DateRangePicker NavigateTo

Hello

I am using ASP.NET CORE EJ 2 version 16.1.0.37 (nuget package).

In the normal DatePicker there is a method NavigateTo() that navigates the calendar to a given date.
Unfortunately this method does not exist for the DateRangePicker.

How can I achieve this for the left and/or the right calendar of a DateRangePicker?


Kind regards
Phil

3 Replies

PK Prem Kumar Madhan Raj Syncfusion Team June 11, 2018 12:42 PM UTC

Hi Phil,   
  
Thanks for contacting Syncfusion Support.   
  
In DatePicker picker component, only a single month will be displayed in the popup and a single date value will be selected. So, NavigateTo method will be beneficial with DatePicker component to navigate to a required date. Whereas in DateRangePicker component, two calendars (left and right calendars) will be displayed with consecutive months and a date range (start date and end dates) will be selected. So, NavigateTo method will not be required with DateRangePicker component as this may lead to unwanted confusions between two calendars in the popup. However, if you could share the use case for this requirement from your end, so that we can check the possibilities to achieve your requirement at our end.   
  
Regards,   
  
Prem Kumar M 



UN Unknown July 5, 2018 01:45 PM UTC

Thank you for your reply.

I would like to mark some special days when initially loading the DateRangePicker and when navigating any of the two calendars. The server will be queried with the current month and returns a list of all the days that should be marked in the calendar's current view.

For the normal DatePicker I could use the NavigateTo event to achieve this. Unfortunately this does not exist in the DateRangePicker.
Is there any way I could do this with a DateRangePicker?



PK Prem Kumar Madhan Raj Syncfusion Team July 6, 2018 01:27 PM UTC

Hi Phil, 

Thanks for the update. 

We have validated regarding this requirement and considered to provide the support at our end with any of our upcoming releases. Please be patience until then. 

Regards, 

Prem Kumar M

Loader.
Up arrow icon