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

Datepicker failing inside an iframe v2012.3.1315

1 Answer 103 Views
Date/Time Pickers
This is a migrated thread and some comments may be shown as answers.
Kelly
Top achievements
Rank 1
Kelly asked on 21 Jan 2013, 05:30 PM

We have a datepicker on an MVC view, rendered per this snippet:

@(Html.Kendo().DatePicker()
  .Name("criteriaDate")
  .Depth(CalendarView.Year)
  .Format(Model.DateFormat)
  .Max(Model.RangeEnd.DateTime)
  .Min(Model.RangeStart.DateTime)
  .Value(Model.RangeStart.DateTime)
  .HtmlAttributes(new { style = "width:100%;" })
)

Everything works fine when the view is rendered directly, but when another site attempts to show it in an iframe we are seeing this error in the Visual Studio debugger: Unhandled exception at line 25, column 9190 in http://localhost/site/Scripts/kendo.all.min.js, which is in the toFront function on the "s=document.activeElement" line. The result is that the datepicker control doesn't render on the page.

I didn't see anything on this topic, so any help would be appreciated. Thanks in advance...

1 Answer, 1 is accepted

Sort by
0
Accepted
Daniel
Telerik team
answered on 23 Jan 2013, 01:45 PM
Hello Paul,

This is a known problem in Internet Explorer when document.activeElement is referenced from within an iframe. The problem has been recently detected and fixed, and changes will take effect in the next internal and official builds

Regards,
Daniel
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Date/Time Pickers
Asked by
Kelly
Top achievements
Rank 1
Answers by
Daniel
Telerik team
Share this question
or