Skip to content

Commit b72b6e2

Browse files
Merge pull request #5 from Yuvaraj-Gajaraj/patch-1
Update README.md
2 parents 031e439 + a89e262 commit b72b6e2

File tree

1 file changed

+35
-6
lines changed

1 file changed

+35
-6
lines changed

README.md

Lines changed: 35 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,39 @@
1-
## Custom sorting
1+
# Flutter DataGrid case insensitive sorting
22

3-
The datagrid allows to sort columns based on custom logic. For each column, you can provide different sorting criteria by overriding the following methods from [DataGridSource](https://pub.dev/documentation/syncfusion_flutter_datagrid/latest/datagrid/DataGridSource-class.html),
43

5-
* **[handleSort](https://pub.dev/documentation/syncfusion_flutter_datagrid/latest/datagrid/DataGridSource/handleSort.html)** : This method will be called when you tap the column header and sorting is being applied. You can override this method to provide the entire logic for sorting for columns.
6-
* **[compare](https://pub.dev/documentation/syncfusion_flutter_datagrid/latest/datagrid/DataGridSource/compare.html)** : You can override this method to compare two objects and return the sorting order based on the criteria.
4+
This repository contains a sample that demonstrates how to perform case insensitive sorting in Syncfusion® DataGrid package.
75

8-
### Case-insensitive sorting
96

10-
This application shows how to perform custom sorting for the columns based on the case-insensitive by overriding the `compare` method.
7+
## Syncfusion® controls:
8+
9+
10+
This project used the following Syncfusion® widget(s):
11+
* [DataGrid](https://www.syncfusion.com/flutter-widgets/flutter-datagrid)
12+
13+
14+
## Supported platforms
15+
16+
17+
Refer to the following link to know about the supported platform - [Platforms](https://help.syncfusion.com/flutter/system-requirements#supported-platforms)
18+
19+
20+
## Requirements to run the sample
21+
22+
23+
Refer to the following link to know about system requirements - [System Requirements](https://help.syncfusion.com/flutter/system-requirements)
24+
25+
26+
## How to run the sample
27+
28+
29+
1. Clone the sample and open it in preferred IDE.
30+
2. Run the application.
31+
32+
33+
*Note: If you download the sample using the "Download ZIP" option, right-click it, select Properties, and then select Unblock.*
34+
35+
36+
## License
37+
38+
39+
Syncfusion® has no liability for any damage or consequence that may arise by using or viewing the samples. The samples are for demonstrative purposes, and if you choose to use or access the samples, you agree to not hold Syncfusion® liable, in any form, for any damage that is related to use, for accessing, or viewing the samples. By accessing, viewing, or seeing the samples, you acknowledge and agree Syncfusion®’s samples will not allow you seek injunctive relief in any form for any claim related to the sample. If you do not agree to this, do not view, access, utilize, or otherwise do anything with Syncfusion®’s samples.

0 commit comments

Comments
 (0)