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

Using a calendar inside the grid

2 Answers 141 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Bill
Top achievements
Rank 2
Bill asked on 21 Feb 2013, 10:06 PM
I would like to use a calendar inside a column of the grid.

How can I accomplisht this?

2 Answers, 1 is accepted

Sort by
0
Bill
Top achievements
Rank 2
answered on 23 Feb 2013, 10:23 PM
Essentially, I would like to know how I can use the Calendar extension inside a grid column....

Does anybody have any idea?

I've searched all over the web on doing what seems to be a pretty common occurrence to me, but can't find anything on it. I've done this with the RadAjax controls, but am looking for similiar functionality with the MVC extensions.
0
Vladimir Iliev
Telerik team
answered on 28 Feb 2013, 06:27 AM
Hi William,

I would suggest to define custom editor template which contains the Calendar - please check the example below:

Define editor template:

columns.Bound(p => p.LastSupply).Width(130).Format("{0:d}").EditorTemplateName("Calendar");
 
Calendar editor template:
@model DateTime
    
@(Html.Telerik().Calendar().Name(ViewData.TemplateInfo.GetFullHtmlFieldName("")))
Kind Regards,
Vladimir Iliev
the Telerik team
Check out the successor of Telerik MVC Extensions - Kendo UI for ASP.NET MVC - and deem it for new ASP.NET MVC development.
Tags
Grid
Asked by
Bill
Top achievements
Rank 2
Answers by
Bill
Top achievements
Rank 2
Vladimir Iliev
Telerik team
Share this question
or