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

GridViewDateTimeColumn - how to edit time AND date

1 Answer 163 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Mariusz
Top achievements
Rank 1
Mariusz asked on 01 Aug 2012, 07:54 AM
Hello, I'm trying to make date and time both editable in a GridViewDateTimeColumn. I declare a column with this code:

column = new GridViewDateTimeColumn(def.Name);
string dataFormatString = (def.CustomString == null ? "yyyy-MM-dd hh:mm:ss" : def.CustomString);
((GridViewDateTimeColumn)column).EditorType = GridViewDateTimeEditorType.TimePicker;
((GridViewDateTimeColumn)column).FormatString = dataFormatString;
((GridViewDateTimeColumn)column).CustomFormat = dataFormatString;

I tried DateTimePicker and TimePicker alike.

In DateTimePicker the time is always 12:00. If I want to edit the field with keyboard only (no additional window) I only see the date in the editbox, the time vanishes on edit mode. In TimePicker I can edit date in edit mode.

My questions are:
1) How to make time editable in DateTimePicker?
2) Is there a WinForms control that allows editing date and time in additional window mode?

Thank you in advance for your answers.
Best wishes,
Mariusz

1 Answer, 1 is accepted

Sort by
0
Julian Benkov
Telerik team
answered on 03 Aug 2012, 02:13 PM
Hello Mariusz,

Currently, the RadDateTimePicker component does not support this functionality. This feature request is already logged to our Public Issue Tracking System. Please follow this link to add your vote and also subscribe to its status updates. 

Thank you for your time and cooperation. Let us know if you have any other questions.

Regards,
Julian Benkov
the Telerik team
RadControls for WinForms Q2'12 release is now live! Check out what's new or download a free trial >>
Tags
GridView
Asked by
Mariusz
Top achievements
Rank 1
Answers by
Julian Benkov
Telerik team
Share this question
or