question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

sort event direction

See original GitHub issue

Hi,

There is no way to get direction of selected sort. Object returned gives null in direction field. Simple handler:

w2ui.masternodes.on('sort', function(event) {
    console.log(event);
});

And output: screen shot 2017-01-19 at 11 42 26

Is there any other way to get user sort selection? For example to resort grid after row is modified?

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
mpf82commented, Jan 19, 2017

You can get the latest sorting from grid.sortData: http://w2ui.com/web/docs/1.5/w2grid.sortData

It should be relatively easy to return the current sorting in the sort event, thus I suggest you leave the issue open.

0reactions
MrDefactocommented, Jan 24, 2017

Thank You 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

[Sort] Programatically setting active/direction does not update UI
Bug, feature request, or proposal: I'm programmatically setting the active and direction on matSort, but it's not updating the UI What is ...
Read more >
Default sorting in Angular Material - Sort header - Stack Overflow
Hello, if my table implements pagination, how can I ensure that the active and direction parameters are carried over to the next page?...
Read more >
Sort header - Angular Material
MatSortHeader. Applies sorting behavior (click to change sort) and styles to an element, including an arrow to display the current sort direction.
Read more >
Specifying a Sort Direction - TIBCO Product Documentation
You can specify that items in a list be sorted in either ascending or descending order:
Read more >
Implementing Custom Sorting in Columns in JavaScript
A JavaScript tutorial for web developers show how to custom sort ... you can listen to the sort's matSortChange event and re-order your...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found