summaryrefslogtreecommitdiffstats
path: root/examples/example-header-row.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).
* BREAKING API CHANGESMichael Leibman2012-08-311-24/+15
| | | | | | | | | | | | | | | | | | | | New events: + onBeforeHeaderRowCellDestroy + onHeaderRowCellRendered Renamed events: onHeaderRendered -> onHeaderCellRendered onBeforeHeaderDestroy -> onBeforeHeaderCellDestroy New methods: - setTopPanelVisibility - setHeaderRowVisibility Removed methods: - showTopPanel - hideTopPanel - showHeaderRowColumns - hideHeaderRowColumns
* Fixed "fixed header" example for FF.Michael Leibman2012-02-261-2/+9
| | | | | | I'm sick and tired of trying to make this work cross-browser. Box-sizing FTW, which means that this example no longer displays correct in IE7. Oh well, this is just an example.
* More cleanup.Michael Leibman2012-01-171-14/+13
|
* Reformatted code.Michael Leibman2012-01-171-135/+134
|
* Upgraded to the latest jQuery and jQuery UI versions.mleibman2011-11-111-3/+3
|
* Cleaned up column width calculations and removed syncColumnCellResize option.mleibman2011-02-221-2/+4
| | | | | | | | | | | | | | | | | | 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.
* This is likely unfinished and buggy, but it is waaay too cool not to check ↵mleibman2010-12-301-1/+1
| | | | | | | | | | | | | | | | in now! Added Slick.NonDataRow and deriving Slick.Group and Slick.GroupTotals classes that the grid recognizes. Added grouping and aggregation support to the DataView. DataView.groupBy() takes in a grouping value getter (either a property name or a function), a grouping value formatter, and an optional sort comparer. The sort comparer is pretty slick. Unlike most other implementations, SlickGrid's grouping does not force you into any particular order. It can take your data just the way it is ordered and simply break it into groups. Essentially, you can end up with multiple groups with the same value in different places. If you do specify the grouping sort, however, you get a more traditional ordering where the items are first ordered by the groups and, then, ordered by whatever you normally sort by withing the groups. DataView now also supports custom aggregators and group expanding/collapsing. Several reference aggregators are included in Slick.Data. Totals row cells are formatted using the "groupTotalsFormatter" specified on the column definition. To maintain a consistent API, I've decided to remove the "fastSort" DataView method. For IE8 and lower, it may be better to override Array.prototype.sort with a custom quicksort or mergesort implementation. Overriding the Object.toString works great, but it requires a different way of specifying the sort. Also for consistency's sake, I've removed the DataView.rows collection. DataView now exposes GetItem() and GetLength() and can be used as a databinding source directly.
* 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-0/+1
| | | | actual elements. This fixes the issues displaying the grid in an initially hidden container.
* Added a mechanism to set scope ("this") in events.mleibman2010-12-091-2/+2
| | | | | Grid and DataView now set the scope to the instance. Corrected args format in events in DataView.
* Added a fixed header row and an example of how to use it to implement inline ↵mleibman2010-12-041-0/+137
column filters. Renamed "secondary header row" to "top panel" for clarity.