summaryrefslogtreecommitdiffstats
path: root/examples/example13-getItem-sorting.html
Commit message (Collapse)AuthorAgeFilesLines
* Added Link to Github sourceToby Allen2013-10-131-0/+4
| | | | for all example pages in github pages
* Upgraded to drag/drop 2.2 and fixed a bugfix lost in the gh-pages cleanup ↵Michael Leibman2013-03-211-1/+1
| | | | (#520).
* More cleanup.Michael Leibman2012-01-171-21/+18
|
* Reformatted code.Michael Leibman2012-01-171-85/+112
|
* Upgraded to the latest jQuery and jQuery UI versions.mleibman2011-11-111-1/+1
|
* Cleaned up column width calculations and removed syncColumnCellResize option.mleibman2011-02-221-1/+1
| | | | | | | | | | | | | | | | | | Added a way to provide row and/or cell specific metadata: The item metadata is retrieved separately from the item itself. It is done via the optional "getItemMetadata(index)" method on the data provider. The method should return an object that will be queried by the grid. The object can contain row-level properties itself (currently supported: selectable, focusable, cssClasses, formatter, editor) and a "columns" collection with column-level properties (currently supported: selectable, focusable, cssClasses, formatter, editor, colspan) indexed by column id or index. The grid will first try to read a supported property off row-level metadata, then off column-level metadata first by id and then by index, and then off the column definition. Renamed "unselectable" into "selectable" and changed how it works. It is now queried in the order described above, and the first available value is read. The new "focusable" property works the same way. Separated logic for determining whether a cell can be active/focused and selected. Added "canCellBeActive" method. Removed grouping-related code from the grid core and implemented it via "getItemMetadata" on the DataView. Rewrote cell navigation to work with colspan. Added support for colspan. Colspan can be defined on the column definition (or item metadata via getItemMetadata). A special value of "*" is taken to mean "span the rest of the row". TODO: Further decouple grouping. Add a grouping plugin to handle toggling and provide formatters. Move that stuff out of the DataView.
* Removed jquery.curStyles pluging and replaced all uses of curStyles and the ↵mleibman2010-12-201-1/+0
| | | | now deprecated curCSS with the regular jQuery css() since it now returns computed styles and normalizes the units. Changed dimensions variables from ints to floats to better work with browser zooming. Zooming is still mostly broken though due to buggy browser implementations. IE and FF can be worked around, but Chrome rounds up all returned computed styles, so we're out of luck.
* Changed the grid to read the dimensions from the computed style instead of ↵mleibman2010-12-171-4/+5
| | | | actual elements. This fixes the issues displaying the grid in an initially hidden container.
* Initial commit of v2.0 alpha.mleibman2010-11-261-6/+7
| | | | | | | | This major update is focused around API usability, consistency and extensibility, events, and breaking out selection and drag'n'drop functionality into external plugins. Expect this code to be incomplete and buggy at this point. Since there are so many API changes, I am not making any attempt to retain backwards compatibility. Hence the new major version.
* Updated jQuery to 1.4.3 and uQueryUI to 1.8.5.mleibman2010-10-181-1/+1
|
* - CHANGED: updated to version 2 of jquery.event.drag ↵mleibman2010-07-061-1/+1
| | | | | | (http://threedubmedia.com/code/event/drag) - CHANGED: removed the jquery.rule from build script
* - CHANGED: updated jQuery UI to 1.8.2mleibman2010-06-251-1/+0
| | | | | | | | | | | - CHANGED: removed a dependency on the jQuery.Rule plugin - PERF: optimized initial CSS rule generation - PERF: optimized generated HTML. removed "cell" attr, "tabIndex" & "hideFocus" are lazy-set. - PERF: removed unneeded calls to styleColumnWidth() on column resize. - PERF: removed an unnecessary call to node.parentNode in removeRowFromCache(). - PERF: finding a given cell node in a row no longer uses query selectors (goes straight to .children()) - ADDED: users can now select rows via Ctrl/Shift-click on any cell, not just selector. - ADDED: a "reSort" method on the model to re-apply the last sort/fastSort call.
* Upgrade jQuery to 1.4.2, fix jquery.rule to work properly with jQuery 1.4.2Milan Gardian2010-02-251-2/+2
|
* Updated the grid data from an array to a functional approach. Added an ↵Drew Turner2010-02-251-0/+97
example demonstrating indexed sorting based on an index.