Comments (3)
Unfortunately, it's not as simple as adding the event to line 7782 because sorting can be done programmatically via grid.sortBy()
which might not have any event objects associated with it.
What is the user case for this new event? What are the types of actions you may want to perform before a sort is started? Is the current 'sort' event which fires at the end of the sort request not sufficient?
from doby-grid.
Show a loading spinner before the sort starts, remove the loading spinner on complete of sort.
Sorting a collection of 800 models takes about 1-1.5 seconds, add rendering time, and its about 2-5 seconds. Sometimes it freezes the browser for that long.
from doby-grid.
Sorting is not an asynchronous event, so your spinner will not show up -- the browser is locked from rendering until the sorting is done. We have another issue (#3) open to investigate using web workers for slow operations - which will return it into an asynchronous event.
I'll leave this bug open for now, but until #3 is finished, this event will not be very helpful.
from doby-grid.
Related Issues (20)
- cmd+c scrolls at the bottom of the page HOT 2
- Add unit test for new `options.forceRemoteSort` option
- 0.1.1 Release Deployment Tasks
- Initializing Doby grid without columns
- Scrolling will jump when scrolled to bottom and selecting something HOT 2
- Add unit test for `options.menuExtensionsPosition` option
- Resizing the grid will always call the columns formatter HOT 5
- 0.1.2 Release Deployment Tasks
- setSorting does not apply sort icon to sorted column HOT 1
- postprocess not getting called on all rows (0.1.1)
- changing data.height does not affect position of subsequent rows
- Create a new option that allows you to control the margin between the grid and the scrollbar
- Scrollbar is not removed when groups are collapsed HOT 4
- Provide access to events to capture when the quick filters are hidden or shown
- 0.2.0 Release Deployment Tasks
- Grunt build throws error HOT 1
- Resizable Rows and Nested Grids - Nested grids are destroyed when grid or row is resized HOT 1
- clicking on the same cell causes the contextmenu to appear multiple times HOT 1
- Exporting table to HTML doesn't escape HTML tags HOT 1
- How to disable Export Option ? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from doby-grid.