Why the Date Range Picker doesn't work, when I use depth option ?

1 Answer 32 Views
DateRangePicker
Christophe
Top achievements
Rank 1
Christophe asked on 29 Apr 2021, 09:48 AM

Hi, I try to turn your "Date Range Picker" widget into a "Year Range Picker".

Your widget give the options "start" and "depth". I believed that will be work well but absolutely not... When I use the both options, the widget stop to work.

I tried with your example in kendo ui dojo, this code :

    
<div id="example" style="text-align: center;">
    <div class="demo-section k-content wide" style="display: inline-block;">

        <h4>Pick a date range</h4>
        <div id="daterangepicker" title="daterangepicker"></div>
    </div>
    <script>
        $(document).ready(function() {
            $("#daterangepicker").kendoDateRangePicker({
    		start: "decade",
    		depth: "decade"
            });
        });
    </script>
</div>
Why it doesn't work and how to fix it ?

1 Answer, 1 is accepted

Sort by
0
Accepted
Georgi
Telerik team
answered on 04 May 2021, 05:57 AM

Hi Christophe,

Indeed the current implementation does not allow selection with a depth set to anything but "month". I have logged this to our repo and you can track its status in the link below:

We apologize for the caused inconvenience and we thank you for your understanding.

Regards,
Georgi
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Tags
DateRangePicker
Asked by
Christophe
Top achievements
Rank 1
Answers by
Georgi
Telerik team
Share this question
or