|
<ejs-listview
id="listview"
[dataSource]="data"
[sortOrder]="sortOrder"
[fields]="fields"
[headerTitle]="headerTitle"
[showIcon]="true"
[showHeader]="true"
></ejs-listview>
public fields: { [key: string]: string } = {
iconCss: "icon",
tooltip: "text",
groupBy: "category"
};
public sortOrder: string = "Descending"; |
Hi Aditya Murthy,Greetings from Syncfusion support.We have checked your requirement with ListView component. You can achieve your requirement by using SortOrder property of ListView component.Refer the below code snippet.
<ejs-listviewid="listview"[dataSource]="data"[sortOrder]="sortOrder"[fields]="fields"[headerTitle]="headerTitle"[showIcon]="true"[showHeader]="true"></ejs-listview>public fields: { [key: string]: string } = {iconCss: "icon",tooltip: "text",groupBy: "category"};public sortOrder: string = "Descending";Refer the sample link below.Refer to the below links to know more about the ListView component.UG Documentation- https://ej2.syncfusion.com/angular/documentation/listview/grouping/Please let us know, if you need any further assistance.Regards,Sowmiya.P