Has anyone played around with creating a primary and then a secondary sort inside a grid (by the end user clicking on headings)?
I’m sure it would require tinkering with the Kendo JavaScript.
… And I mean without using grouping.
The grouping certainly helps, but if a user wanted to click on the first sort field, and then, click on a second field to sort inside that, that’s more what I’m looking for.
Grid sorting on TWO FIELDS. anyone figured this out?
Grid sorting on TWO FIELDS. anyone figured this out?
Click Here to see a collection of my tips & hacks on this forum. Or search for "JaymerTip" in the search bar at the top.
Jaymer
Aware Programming & Consulting - Tampa FL
Jaymer
Aware Programming & Consulting - Tampa FL
Re: Grid sorting on TWO FIELDS. anyone figured this out?
bump
Click Here to see a collection of my tips & hacks on this forum. Or search for "JaymerTip" in the search bar at the top.
Jaymer
Aware Programming & Consulting - Tampa FL
Jaymer
Aware Programming & Consulting - Tampa FL
Re: Grid sorting on TWO FIELDS. anyone figured this out?
try this on your grid init script
config.sortable = {mode: 'multiple'};
config.sortable = {mode: 'multiple'};
From,
Himanshu Jain
AwareIM Consultant (since version 4.0)
OS: Windows 10.0, Mac
DB: MYSQL, MSSQL
Himanshu Jain
AwareIM Consultant (since version 4.0)
OS: Windows 10.0, Mac
DB: MYSQL, MSSQL
Re: Grid sorting on TWO FIELDS. anyone figured this out?
thx H
it activates that kendo ability, but clicking on the 2nd columns doesn't alter the display of any rows.
the 2nd 'arrow' appears on the 2nd column, and a redraw happens, but no sort order changes.
have you actually seen this work?
Click Here to see a collection of my tips & hacks on this forum. Or search for "JaymerTip" in the search bar at the top.
Jaymer
Aware Programming & Consulting - Tampa FL
Jaymer
Aware Programming & Consulting - Tampa FL
Re: Grid sorting on TWO FIELDS. anyone figured this out?
No Jaymer I actually not used before. I try to test the same and you are right it's not doing what it suppose too.
Will update if found it working, if get time further to investigate.
Will update if found it working, if get time further to investigate.
From,
Himanshu Jain
AwareIM Consultant (since version 4.0)
OS: Windows 10.0, Mac
DB: MYSQL, MSSQL
Himanshu Jain
AwareIM Consultant (since version 4.0)
OS: Windows 10.0, Mac
DB: MYSQL, MSSQL
Re: Grid sorting on TWO FIELDS. anyone figured this out?
Not sure why this doesn´t work and if it should work but one thing I know is that Aware (KendoUI) also has something called server sorting (Kendo has both client i.e sorting directly in the grid and server sorting i.e sorting applied before the data is displayed) and could possibly be the cause of this i.e you also have to do something with the server sorting. Just a wild shot guess though and I don´t know how the sorting and these things work fully so take with a grain of salt.
You could also experiment a bit e.g with the following scripts:
https://www.awareim.com/forum/viewtopic ... 026#p58026
You could also experiment a bit e.g with the following scripts:
https://www.awareim.com/forum/viewtopic ... 026#p58026
Henrik (V8 Developer Ed. - Windows)
-
- Posts: 7560
- Joined: Sun Apr 24, 2005 12:36 am
- Contact:
Re: Grid sorting on TWO FIELDS. anyone figured this out?
Henrik is right - this has to be supported on the server and at the moment it is not. Unless, of course, you define a few Aware IM queries with multiple sorting and you switch between those.
Aware IM Support Team