Declined
Last Updated: 18 Feb 2019 12:57 by ADMIN
xin
Created on: 05 Feb 2019 19:57
Type: Feature Request
1
How do I loading data set to grid with an initial date desc order, The date type will be mm/dd/yyyy?
this.state = {
sort:[
{field:'Date',dir:'desc'}
],

};

<Grid

sortable={true}
sort={this.state.sort}
onSortChange={(e)=>{
this.setState({
sort:e.sort
});

}}

<Column field="Date"filter="date"format="{0:d}"/>

In this way,the date will be sorting with Month, How can I sorting start with year instead of month

(Total attached files size should be smaller than 20mb. Allowed extensions: .zip, .rar, .jpg, .png, .gif)
1 comment
ADMIN
Stefan
Posted on: 06 Feb 2019 09:05
Hello,

When sorting dates, they will be sorted by year first:

I made an example demonstrating this:

https://stackblitz.com/edit/react-q62ryp?file=app/main.js

Please take a look and advise if I missed something.

Regards,
Stefan
Progress Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items