GridViewDateTimeColumn

9 posts, 0 answers
  1. Louis
    Louis  avatar
    44 posts
    Member since:
    Sep 2007

    Posted 01 Oct 2007 Link to this post

    Why is the GridViewDateTimeColumn not showing like the raddatetimepicker ?

    How can i put a raddatetimepicker in a column?
  2. Peter
    Admin
    Peter avatar
    1148 posts

    Posted 02 Oct 2007 Link to this post

    Hello Louis ,

    You cannot put a RadDateTimePicker in RadGridView at this moment. The RadDateTimePicker is not a stand alone control - rather, it was developed to be a plug in module for RadCalendar. Once we provide RadDateTimePicker as a separate control with example and documentation, we will include an example of it with RadGridView.

     

    Best wishes,
    Peter
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Lovsten
    Lovsten avatar
    72 posts
    Member since:
    Aug 2007

    Posted 04 Oct 2007 Link to this post

    For your info Louise. The RadDateTimePicker isn't currently a datetimepicker, it's a DatePickerDateTimeShower (no way for the user to edit the time part). See my post under RadCalender. 
  5. Jose Monerto
    Jose Monerto avatar
    5 posts
    Member since:
    Nov 2009

    Posted 12 Jan 2010 Link to this post

    How can quit DatePickerDateTimeShower or how can selecting automatic date without clicking the control DatePickerDateTimeShower

    regards
  6. Jack
    Admin
    Jack avatar
    2335 posts

    Posted 13 Jan 2010 Link to this post

    Hi Jose,

    I am not sure that I understand your question. There is help article in our online help documentation describing how to customize the date time column. In addition you can use GridViewMaskBoxColumn for date time input:

    GridViewMaskBoxColumn maskColumn = new GridViewMaskBoxColumn("Date");
    maskColumn.MaskType = MaskType.DateTime;
    maskColumn.Mask = "d";
    this.radGridView1.Columns.Add(maskColumn);

    I hope this helps. If you need further assistance, please write back and describe the desired behavior in detail.

    Regards,
    Jack
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  7. Jose Monerto
    Jose Monerto avatar
    5 posts
    Member since:
    Nov 2009

    Posted 13 Jan 2010 Link to this post

    How Can I disable the DatePickerDateTimeShower control or how can I select automaticly the data without make a click in the control for select the data date without clicking the control DatePickerDateTimeShower
  8. Jack
    Admin
    Jack avatar
    2335 posts

    Posted 15 Jan 2010 Link to this post

    Hi Jose Monerto,

    Just set the ReadOnly property of the column to true if you want to disable the editor. If you want to hide the popup of the editor, please consider the code snippet below:

    void radGridView1_CellBeginEdit(object sender, GridViewCellCancelEventArgs e)
    {
        RadDateTimeEditor editor = this.radGridView1.ActiveEditor as RadDateTimeEditor;
        if (editor != null)
        {
            RadDateTimeEditorElement editorElement = editor.EditorElement as RadDateTimeEditorElement;
            editorElement.ShowUpDown = true;
        }
    }

    As to the second part of your question, the user cannot select a date before first clicking in a RadDateTimeEditor (our date time editor). Please describe your scenario in detail and I will be glad to assist you.

    Regards,

    Jack
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  9. Jose Monerto
    Jose Monerto avatar
    5 posts
    Member since:
    Nov 2009

    Posted 15 Jan 2010 Link to this post

    Well, How I can make to save the value of the raddatatimepicker without make a click, or to select the value of this, doing "TAB" or "ENTER" in the keyboard just  for have a better capture way from the user?

    thk, regards
  10. Jack
    Admin
    Jack avatar
    2335 posts

    Posted 18 Jan 2010 Link to this post

    Hi Jose Monerto,

    You can get the current value of a date time picker by using ActiveEditor.Value property and you can save it by calling EndEdit method. In all cases, you need some interaction from the user to save the value. In RadGridView this happens when you click on a different cell or when you navigate with the keyboard (by using Tab, Left, Right keys for example). The editor saves its value also when pressing the Enter key. If you expect different behavior, please describe it in detail and I will be glad to help.

    Sincerely yours,

    Jack
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Back to Top
UI for WinForms is Visual Studio 2017 Ready