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

grid group panel datime format

2 Answers 85 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Moustafa
Top achievements
Rank 1
Moustafa asked on 28 Feb 2009, 11:34 AM
dear all :

I would like to know how to control the datetime format(display) of the grouping panel bar instead of the default formating when grouping with columns of type datetime.

Remarks:
we are using the following
  • telerik controls for asp.net ajax 2008 Q3
  • asp.net framework version 3.5
  • IE as web browser
  • windows vista as an operating system

thanks in advance

2 Answers, 1 is accepted

Sort by
0
Accepted
Shinu
Top achievements
Rank 2
answered on 02 Mar 2009, 06:20 AM
Hi Moustafa,

You can set the FormatString property for the GridGroupByField as shown below.

ASPX:
           
               <
GroupByExpressions> 
                 <telerik:GridGroupByExpression> 
                   <GroupByFields> 
                    <telerik:GridGroupByField FormatString="{0:M/d/yy}" FieldAlias="EndDate" FieldName="EndDate"  /> 
                   </GroupByFields> 
                   <SelectFields> 
                    <telerik:GridGroupByField FormatString="{0:M/d/yy}"  FieldAlias="EndDate" FieldName="EndDate"/> 
                   </SelectFields> 
                 </telerik:GridGroupByExpression> 
               </GroupByExpressions> 

Regards
Shinu
0
Moustafa
Top achievements
Rank 1
answered on 02 Mar 2009, 07:00 AM
thanks very much for you

this is solved my problem

thanks again
Tags
Grid
Asked by
Moustafa
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Moustafa
Top achievements
Rank 1
Share this question
or