ParamQuery Grid
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Home
Help
Search
Login
Register
ParamQuery grid support forum
»
General Category
»
Help for ParamQuery Pro
»
Default initial sort direction for column
« previous
next »
Print
Pages: [
1
]
Author
Topic: Default initial sort direction for column (Read 1841 times)
codecatalysts
Pro Deluxe
Newbie
Posts: 1
Default initial sort direction for column
«
on:
October 18, 2017, 11:12:34 pm »
Is there a way to set the initial direction a column is sorted when clicked? Currently when a column is clicked to be sorted it is sorted in ascending order by default but I would rather it be sorted by descending for select/specified columns.
Logged
paramvir
Administrator
Hero Member
Posts: 6310
Re: Default initial sort direction for column
«
Reply #1 on:
October 20, 2017, 09:51:11 am »
There is no declarative option for it.
Sorting direction or whole sorter can be programmatically customized by modifying ui.sorter parameter and comparing it with ui.oldSorter parameter in the beforeSort event.
https://paramquery.com/pro/api#event-beforeSort
Logged
Print
Pages: [
1
]
« previous
next »
ParamQuery grid support forum
»
General Category
»
Help for ParamQuery Pro
»
Default initial sort direction for column