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

Grouping Dates does not work

1 Answer 40 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Darren
Top achievements
Rank 1
Darren asked on 15 Jan 2009, 05:53 PM
Hi, I set up a radgrid to allow for the user to create groupings by dragging: AllowDragToGroup="true"

The problem is that I have a column of dates that have a format string on them (it is listed below). When the client drags this column to group the dates are not grouped. It looks like grouping has taken place but they are all listed out in separate spots - even though they appear to have the same value. I know they have the same value from the database because I am only return mm/dd/yy in the stored procedure. 

<

 

telerik:GridBoundColumn DataField="RegStatusDate" HeaderText="Status Date" SortExpression="RegStatusDate"

 

 

ItemStyle-HorizontalAlign="Left" ItemStyle-VerticalAlign="top" HeaderStyle-VerticalAlign="Top"

 

 

DataFormatString="{0:M/dd}" HtmlEncode="false" UniqueName="RegStatusDate" ReadOnly="True" />

Am I missing something? Thanks for any help.

 

1 Answer, 1 is accepted

Sort by
0
Daniel
Telerik team
answered on 16 Jan 2009, 09:21 AM
Hello Darren,

You can't group by the value generated from the DataFormatString property.

To achieve such functionality I suggest you examine the following code-library:
Group by month

Let me know if I am missing something.

Best regards,
Daniel
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Grid
Asked by
Darren
Top achievements
Rank 1
Answers by
Daniel
Telerik team
Share this question
or