This question is locked. New answers and comments are not allowed.
Hi,
I have a TimePicker inside a View that is rendered in a Window. My problem is that I cannot get the time dropdown to show. What am I doing wrong? The DatePicker I have on the same View works perfectly. Source code below.
I have a TimePicker inside a View that is rendered in a Window. My problem is that I cannot get the time dropdown to show. What am I doing wrong? The DatePicker I have on the same View works perfectly. Source code below.
<% Html.Telerik().Window()
.Name("AddAppointment")
.Title("Test")
.Draggable(true)
.Resizable(resizing => resizing.Enabled(true)
.MinHeight(300)
.MinWidth(300)
.MaxHeight(900)
.MaxWidth(500))
.Modal(false)
.Buttons(b => b.Maximize().Close())
.LoadContentFrom("AddAppointment", "Loan", new { id = Model.Loan.ID })
.Width(370)
.Height(400)
.Render();
%>
<%@ Page Title="" Language="C#" Inherits="System.Web.Mvc.ViewPage<TinyCRM.Models.LoanEvent>" %>
<html>
<body>
<h2>Legg til avtaletidspunkt</h2>
<% using (Html.BeginForm())
{%>
<%: Html.ValidationSummary(true) %>
<div class="editor-label">
<%: Html.LabelFor(model=>model.Action) %>
</div>
<div class="editor-field">
<%: Html.TextBoxFor(model => model.Action)%>
<%: Html.ValidationMessageFor(model => model.Action)%>
</div>
<div class="editor-label">
<%: Html.LabelFor(model=>model.Comment) %>
</div>
<div class="editor-field">
<%: Html.EditorFor(model => model.Comment)%>
<%: Html.ValidationMessageFor(model => model.Comment)%>
</div>
<div class="editor-label">
Dato
</div>
<div class="editor-field">
<%= Html.Telerik().DatePicker()
.Name("Date")
.ShowButton(true)
.Value("") %>
</div>
<div class="editor-field">
<table>
<tr>
<td>Start</td>
<td>Slutt</td>
</tr>
<tr>
<td>
<%= Html.Telerik().TimePicker()
.Name("Start")
%>
</td>
<td>
<%= Html.Telerik().TimePicker()
.Name("Slutt")
%>
</td>
</tr>
</table>
</div>
<p style="clear: both;">
<input type="submit" value="Opprett" />
</p>
<% } %>
</body>
</html>
