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

[Solved] DatePicker outside RenderBody()

1 Answer 102 Views
Date/Time Pickers
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Eve Cunning
Top achievements
Rank 1
Eve Cunning asked on 03 May 2011, 07:03 PM

I am trying to use a Telerik DatePicker in a layout file, outside of the call to RenderBody().  This is a simple example, with _HtmlHead initializing the ScriptManager et al:

@using Telerik.Web.Mvc.UI
<!DOCTYPE html>
<html>
<head>
    <title>CORE</title>
    @Html.Partial("_HtmlHead")
</head>
<body>
    @(Html.Telerik().DatePicker().Name("date1").Value(DateTime.Now)))
    @RenderBody()
</body>
</html>

The DatePicker above appears, but its calendar button does not work.  The same also happens if you move the DatePicker to after RenderBody(). However, if the DatePicker is inside the view used by RenderBody(), it works as expected.

Is there a fix for this issue, other than not using DatePicker in a layout file?

Thank you,
Eve

1 Answer, 1 is accepted

Sort by
0
Eve Cunning
Top achievements
Rank 1
answered on 09 May 2011, 04:16 PM
<bump>

Hello?  Any response?
Tags
Date/Time Pickers
Asked by
Eve Cunning
Top achievements
Rank 1
Answers by
Eve Cunning
Top achievements
Rank 1
Share this question
or