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

datepicker disappears upon row selection change

1 Answer 83 Views
Date/Time Pickers
This is a migrated thread and some comments may be shown as answers.
Frank
Top achievements
Rank 1
Frank asked on 17 Nov 2016, 08:35 PM

Hi

I have a mvc view called "index" with a table of rows each with "Edit" button and on the top i have a "Create New" button. 

On "Edit" button click, I load a partial view with the details of row item. some of the controls are kendo datepickers. 

if i either click "Save" or "cancel" and then click another "Edit" button everything loads fine. 

But if i don't cancel or save but simply click on another row, my kendo datepicker controls disappear. I suspect it might be the way i am loading my scripts?! 

I followed the tutorial and included    

@Styles.Render("~/Content/kendo/css")
and     @Scripts.Render("~/bundles/kendo")
in my layout.cshtml. 

and triggered my datepicker with class 'datepicker' and script

        $('.datepicker').kendoDatePicker();

It might not be the problem with datepicker but may be the way load/unload should happen? I appreciate any help. 

Thanks

1 Answer, 1 is accepted

Sort by
0
Georgi Krustev
Telerik team
answered on 21 Nov 2016, 08:51 AM
Hello Frank,

I am afraid that it is not very clear what is current implementation and what is causing the erroneous behavior. Could you provide a runnable demo that demonstrates the issue? This will help to understand the current implementation and find the cause of the problem much faster.

Regards,
Georgi Krustev
Telerik by Progress
Kendo UI is ready for Visual Studio 2017 RC! Learn more.
Tags
Date/Time Pickers
Asked by
Frank
Top achievements
Rank 1
Answers by
Georgi Krustev
Telerik team
Share this question
or