We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Depth property of DateRangePicker

Thread ID:

Created:

Updated:

Platform:

Replies:

150482 Jan 8,2020 02:56 PM UTC Jan 10,2020 05:36 PM UTC Angular - EJ 2 4
loading
Tags: DateRangePicker
narinder
Asked On January 8, 2020 02:56 PM UTC

Hi Everyone,

I've tried different ways to apply depth property on DateRangePicker. It's not working. Can anyone help me with an example. I need to set depth as Year.

narinder
Replied On January 9, 2020 08:31 AM UTC

Can anyone please reply on this ? A bit urgent

Sureshkumar P [Syncfusion]
Replied On January 9, 2020 09:12 AM UTC

Hi Narinder, 
 
Greetings from Syncfusion support.  
 
Yes, we can set the start and depth property in our angular daterangepicker component.  
 
Kindly refer the below code block. 
 
[component.html] 
  <ejs-daterangepicker [start]='start' [format]="format" [depth]='depth'></ejs-daterangepicker> 
 
[component.ts] 
 
public start: CalendarView = 'Year'; 
    public depth: CalendarView = 'Year'; 
 
To know more about our start and depth property please follow our online demo and documentation links. 
 
 
Documentation links: 
 
 
 
Regards, 
Sureshkumar P 


narinder
Replied On January 9, 2020 09:18 AM UTC

Hi Suresh,

I am following the same link , which you provided
 I am getting below on Build :
Can't bind to 'depth' since it isn't a known property of 'ejs-daterangepicker'.

If i am providing depth='Year' directly in html , it doesn't gives me error on build , but it's not making any difference on UI.

Berly Christopher [Syncfusion]
Replied On January 10, 2020 05:36 PM UTC

Hi Narinder, 
  
We suspect that the reported issue ”Can't bind to 'depth' since it isn't a known property of 'ejs-daterangepicker” may be caused due to use the lower version of the Syncfusion Calendar package in your application.  
  
Because we have provided the start and depth support in the product version “17.1.32“. So, we suggest you to ensure that you have used this version in your application if not, please upgrade the package to 17.1.32 or above version (latest 17.4.42) to get rid of the reported issue, 
  
  
Please find the release notes details from the below link. 
  
Regards,
Berly B.C 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon