Skip to content

Commit 8ecfb38

Browse files
Enable Multiple Sorting
1 parent 4cb608b commit 8ecfb38

5 files changed

Lines changed: 9 additions & 1 deletion

File tree

ASP.NET Core/Views/Home/Index.cshtml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
columns.AddFor(m => m.HomePhone);
3737
columns.AddFor(m => m.PostalCode).Visible(false);
3838
})
39+
.Sorting(s => s.Mode(GridSortingMode.Multiple))
3940
.FilterRow(f => f.Visible(true))
4041
.SearchPanel(s => s.Visible(true))
4142
.GroupPanel(p => p.Visible(true))

Angular/src/app/app.component.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
<dxi-column dataField="PostalCode" [visible]="false"></dxi-column>
3131
<dxo-column-chooser [enabled]="true"></dxo-column-chooser>
3232
<dxo-column-fixing [enabled]="true"></dxo-column-fixing>
33+
<dxo-sorting mode="multiple"></dxo-sorting>
3334
<dxo-filter-row [visible]="true"></dxo-filter-row>
3435
<dxo-search-panel [visible]="true"></dxo-search-panel>
3536
<dxo-group-panel [visible]="true"></dxo-group-panel>

React/src/App.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import DataGrid, {
44
ColumnFixing,
55
Column,
66
RequiredRule,
7+
Sorting,
78
FilterRow,
89
SearchPanel,
910
GroupPanel,
@@ -140,6 +141,7 @@ function App(): JSX.Element {
140141
<Column dataField="HomePhone" />
141142
<Column dataField="PostalCode" visible={false} />
142143
<ColumnFixing enabled={true} />
144+
<Sorting mode='multiple'/>
143145
<FilterRow visible={true} />
144146
<SearchPanel visible={true} />
145147
<GroupPanel visible={true} />

Vue/src/components/DataGridContent.vue

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@
4949
/>
5050
<DxColumnChooser :enabled="true"/>
5151
<DxColumnFixing :enabled="true"/>
52+
<DxSorting mode="multiple"/>
5253
<DxFilterRow :visible="true"/>
5354
<DxSearchPanel :visible="true"/>
5455
<DxGroupPanel :visible="true"/>
@@ -131,7 +132,9 @@ import {
131132
DxToolbar,
132133
DxItem,
133134
DxMasterDetail,
134-
DxExport
135+
DxExport,
136+
DxSorting,
137+
type DxDataGridTypes
135138
} from 'devextreme-vue/data-grid';
136139
import { DxButton } from 'devextreme-vue/button';
137140
import { getEmployees, type Employee } from '../employees.service';

jQuery/src/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ $(() => {
6868
visible: false,
6969
},
7070
],
71+
sorting: { mode: 'multiple' },
7172
filterRow: { visible: true },
7273
searchPanel: { visible: true },
7374
groupPanel: { visible: true },

0 commit comments

Comments
 (0)