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

Date Format while Editing

1 Answer 29 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Prabhu
Top achievements
Rank 1
Prabhu asked on 03 Jan 2012, 02:42 PM

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

1 Answer, 1 is accepted

Sort by
0
Dimitrina
Telerik team
answered on 04 Jan 2012, 02:32 PM
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 >>

Tags
GridView
Asked by
Prabhu
Top achievements
Rank 1
Answers by
Dimitrina
Telerik team
Share this question
or