Date Format while Editing

2 posts, 0 answers
  1. Prabhu
    Prabhu avatar
    25 posts
    Member since:
    Feb 2008

    Posted 03 Jan 2012 Link to this post


    Hi,
    I have GridViewDataColumn as date in the gridview. I have given format as dd-MMM-yyyy. While displaying in normal mode it is OK, But while editing MM/dd/yyyy format is shown but should be shown in  dd-MMM-yyyy as I have given.

    My code is
     <telerik:GridViewDataColumn DataMemberBinding="{Binding Established}"
                                                Header="Est."
                                                DataFormatString="{}{0:dd-MMM-yyyy}" UniqueName="Unique1"
                                                />



    Is there any way of achiving the same? Please help
  2. Dimitrina
    Admin
    Dimitrina avatar
    3769 posts

    Posted 04 Jan 2012 Link to this post

    Hello,

    If you would like to format the value when the GridViewCell is in edit mode, then you should define your own CellEditTemplate where you could place everything you would like to see while editing. Please check this help article for more information on how to proceed.

    Kind regards,
    Didie
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Back to Top