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

[Solved] Editor Template for Date

1 Answer 195 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.
adeel zahid
Top achievements
Rank 1
adeel zahid asked on 18 Apr 2011, 12:24 PM
Hello Everyone,

i have bound a Viewmodel with Telerik grid and annotated a property with DataType.Date but it does not show telerik datepicker when editing or inserting the value. Here is my viewModel
public class MyViewMode
{
    public int id{get;set;}
    [DataType(DataType.Date)]
    [UIHint("Date")]// plz note that i copied telerik's date.ascx partial in ~/views/shared/Editor Templates/ folder
    public DateTime FromDate{get;set;}
    [DataType(DataType.Date)]
    [UIHint("Date")]
    public DateTime ToDate{get;set;}
}


Edit: i m using ajax binding and i have successfully used Editor templates for editing EmployeeID using telerik dropdown (UIHint attribute). its Date field that has become a headache for me

Any help will be highly appreciated

1 Answer, 1 is accepted

Sort by
0
Raymond
Top achievements
Rank 1
answered on 21 Jul 2011, 07:42 PM
Did you ever figure this out? I'm having the same problem. Thanks.
Tags
Grid
Asked by
adeel zahid
Top achievements
Rank 1
Answers by
Raymond
Top achievements
Rank 1
Share this question
or