This is a migrated thread and some comments may be shown as answers.

How to disable DatePicker animation use TagHelper?

1 Answer 126 Views
Date/Time Pickers
This is a migrated thread and some comments may be shown as answers.
Bruce Thomas
Top achievements
Rank 1
Bruce Thomas asked on 06 Apr 2020, 05:51 PM
Can the DatePicker animation be disabled using the TagHelper? I tried adding an animation="false" attribute but had to revert to using @Html.Kendo().DatePicker() before it would disable the open/close animation.

1 Answer, 1 is accepted

Sort by
0
Nikolay
Telerik team
answered on 09 Apr 2020, 12:21 PM

Hello Bruce,

The animation setting of the DatePicker is currently not exposed when TagHelper is used.

I can suggest disabling the animation programmatically with jQuery:

<kendo-datepicker name="datepicker1"></kendo-datepicker>
<script>
    $(document).ready(function () {
       $("#datepicker1").kendoDatePicker({
            animation: false,
        });
    });
</script>

Additionally, if you would like I can convert this thread to a feature request for a future exposing the animation setting for TagHelper Datepicker.

Regards,
Nikolay
Progress Telerik

Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.
Tags
Date/Time Pickers
Asked by
Bruce Thomas
Top achievements
Rank 1
Answers by
Nikolay
Telerik team
Share this question
or