ParamQuery grid support forum
General Category => Help for ParamQuery Pro => Topic started by: msdnweixiao on January 07, 2021, 01:30:56 pm
-
hello,
When the table is initialized, the sort type is remote.
After inserting the local data, how can I change the sort type to local?
Note: Use sort method to change sortModel options dynamically.
But the sort method does not modify the type parameter.
thank you.
-
you are right, it can't be done with sort method.
generic option method can be used for it.
grid.option('sortModel.type', 'local');
-
OK, it works.
But when sorting Chinese characters, the order of sorting is not correct. How to customize sorting rules for a column?
thank you
-
Sorting can be customized with column.sortType callback.
https://paramquery.com/pro/api#option-column-sortType
Example: https://paramquery.com/pro/demos/sorting_custom
-
yes, thank you.