This is a migrated thread and some comments may be shown as answers.
TimePicker in Grid
2 Answers 63 Views
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Paul Smrz
Top achievements
Rank 1
Paul Smrz asked on 12 Nov 2010, 06:01 PM
Hi,

Is the TimePicker not usable for grids?  I'm getting an error 'jQuery("#StartDateTime").tTimePicker is not a function'. 

I configured the field's metadata as:
[DataType(DataType.Time)]
public object StartDateTime {
   get;
   set;
}

I have a Time.ascx template as:
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<DateTime>" %>
<%= Html.Telerik().TimePicker()       
   .Name( ViewData.TemplateInfo.GetFullHtmlFieldName( string.Empty) ) 
   .ShowButton(false)
   .Interval(15)  
   .Value(Model > DateTime.MinValue? Model : DateTime.Today)%>

My view declares the column as:
columns.Bound( s => s.StartDateTime ).Width( 70 ).Title( ShiftScheduleResources.StartDateTime );

Interestingly, if I change the type in Time.ascx to DatePicker, it works as expected.

Please help.

Thanks,

Paul

2 Answers, 1 is accepted

Sort by
0
Accepted
Atanas Korchev
Telerik team
answered on 12 Nov 2010, 06:21 PM
Hi Paul Smrz,

 Check this forum thread.

Regards,
Atanas Korchev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Paul Smrz
Top achievements
Rank 1
answered on 12 Nov 2010, 06:43 PM
Worked great, thanks!
Tags
Date/Time Pickers
Asked by
Paul Smrz
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Paul Smrz
Top achievements
Rank 1
Share this question
or