| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
|
|
|
| |
- Use a fixed position (i.e. always on screen) hidden DIV as a focusable keyboard event sink, and focus on that instead of the grid canvas. Since it is always in the viewport, no scrolling occurs. We still listen to events from editors bubbling up to the canvas and set focus on canvas clicks.
- Exposed a "focus()" method on the grid.
- Got rid of IE's .setActive() call since we have a better mechanism now.
- Fixed "fast" arrow key navigation when asyncEditorLoading is on.
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
versions.
|
|
|
|
| |
breaking e.metaKey in Windows.
|
|\
| |
| | |
Improvements to multi-column sort.
|
| | |
|
| |
| |
| |
| | |
"multiColumnSort" option is enabled.
|
|/
|
|
|
|
| |
If 'rows' array has holes in it, the previous check would incorrectly
cancel editing for rows that are not being invalidated, or NOT cancel
editing in cases like invalidateRows([0,1,3]) when activeRow is 3.
|
| |
|
| |
|
|
|
|
| |
viewport height being off by a couple of pixels.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
DataView:
- New "mapIdsToRows" and "mapRowsToIds" helper methods.
- "syncGridSelection" and "syncGridCellCssStyles" keep selection and
cell CSS styles (set via grid.setCellCssStyles) in sync across DataView
changes. Use them if you want or write your version that incorporates
your requirements.
SlickGrid:
- Added an "onCellCssStylesChanged" event and a "getCellCssStyles"
accessor.
|
| |
|
|
|
|
|
|
|
|
|
| |
- Split up formatters into a separate file.
- Moved both formatters and editors into Slick.Formatters.* and
Slick.Editors.* namespaces. Renamed some for clarity.
- Removed obscure unused formatters from old examples.
- Made the default formatter escape HTML since that seems to be the
more common expectation (issue #267).
|
| |
|
|
|
|
|
| |
- Removed unused "headerHeight" option and corrected viewport height calculation to use the actual header height.
- Set "overflow-y:hidden" on the viewport when "autoHeight" option is true to prevent unnecessary scrollbar.
|
|
|
|
| |
https://github.com/mleibman/SlickGrid/commit/98a503f3048591dbd6ae3ff8565e5319b97cf37c - fixed an issue with empty grid display when forceFitColumns=true.
|
| |
|
| |
|
|
|
|
| |
whether a vertical scrollbar is present and handle the transition (scrollbar visible-hidden) if "forceFitColumns" option is set. Also, cached cell CSS rules instead of looping over and looking for them each time.
|
| |
|
| |
|
|
|
|
| |
between grid instances.
|
| |
|
|
|
|
| |
(left,right,top,or bottom).
|
| |
|
| |
|
|
|
|
|
|
|
| |
It is useful if we need to check the ctrlKey or shiftKey fields
when the user clicks a column header.
Signed-off-by: David Capello <davidcapello@gmail.com>
|
| |
|
|
|
|
| |
example demonstrating this functionality.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
- grid.setSelectionModel() now accepts null.
- Added grid.getRenderedRange() method.
- Set the height on .slick-row so its background can be styled in CSS.
- Removed some dead code.
- Added a Slick.EventHandler helper class to simplify working with
event handlers.
- Fixed an extra onSelectedRowsChanged event firing during multi-row
selects in RowSelectionModel.
- Fixed copy/paste keyboard shortcuts on a Mac in CellCopyManager.
|
|
|
|
| |
This fixes occasional Chrome errors and zoom issues.
|
| |
|
|
|
|
| |
getting hijacked by drag'n'drop in dragInit.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
| |
vlsi!).
|
| |
|
| |
|
|
|
|
|
|
| |
Added a CompositeEditor that can combine several editors and host them in specified containers.
Added an example of using the CompositeEditor to do an item edit form.
It is also a launching pad for adding ExtJS-like row level editing support.
|
|
|
|
| |
Fixed arguments defaults in event triggering in the grid.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
| |
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.
|
| |
|
|
|
|
| |
Added a check for jQuery.curStyles to Slick.Grid.
|
|\ |
|
| | |
|
|/
|
|
| |
actual elements. This fixes the issues displaying the grid in an initially hidden container.
|
|
|
|
|
|
| |
prevent forced scrolling by the browser.
Re-rendering row with active cell no longer resets keyboard focus.
|
|
|
|
|
| |
Grid and DataView now set the scope to the instance.
Corrected args format in events in DataView.
|
|
|
|
| |
model's events.
|
| |
|
| |
|
|
|
|
|
|
| |
column filters.
Renamed "secondary header row" to "top panel" for clarity.
|
|
|
|
|
|
| |
Added selected row caching and de-duplication to the grid.
Added an option to selection models on whether to select active cell/row.
Added an example of a checkbox select column implementation.
|
|
|
|
|
|
| |
Added onHeaderClick event.
Added onMouseEnter & onMouseLeave events.
Extracted auto tooltips into a separate plugin - AutoTooltips.
|
|
|
|
|
| |
Added CellRangeSelector and refactored CellSelectionModel to make use of it.
Added a sample FormulaEditor cell editor that uses CellRangeSelector to let the user drag-select a range of cells and have them appended to the currently edited cell.
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
false is destroyed. http://github.com/mleibman/SlickGrid/issues#issue/100.
|
|
|
|
| |
(width/currentWidth layout bug after forceFitColumns) Thanks Andrew!
|
| |
|
| |
|
|\ |
|
| |\
| | |
| | |
| | |
| | |
| | | |
Conflicts (merged by hand):
slick.grid.js
|
| | | |
|
|/ / |
|
| |
| |
| |
| | |
"slickgrid" events on destroy.
|
| | |
|
| |
| |
| |
| |
| | |
- ADDED: new grid method "getCellFromEvent"
- ADDED: drag'n'drop example to "example9-row-reordering.html"
|
| |
| |
| |
| | |
makes it possible to have multiline text in cells (wrapping), but leaves the responsibility of vertically centering cell contents on the user (if that's what they want).
|
| | |
|
| |
| |
| |
| | |
object (passing a jQuery object still works though). This removes the need for the user to know or use jQuery.
|
| | |
|
|/ |
|
|
|
|
|
|
|
| |
- ADDED: "toolTipMaxLength" option.
- FIXED: not all rows getting removed by updateRowCount().
- ADDED: onHeaderContextMenu event now passes in a column definition as a second parameter.
- ADDED: "getGridPosition" method.
|
| |
|
|
|
|
| |
("enableCellRangeSelection" option, "onCellRangeSelected" event)
|
|
|
|
|
|
| |
box-shadow to work
- ADDED: "eval(expr)" debug method to simplify development and debugging
|
|\ |
|
| |
| |
| |
| |
| |
| | |
(http://threedubmedia.com/code/event/drag)
- CHANGED: removed the jquery.rule from build script
|
| | |
|
|/ |
|
|
|
|
| |
we still use ids on column headers because they are needed for jQueryUI's sortable to work, but the ids are now generated with a unique grid id.
|
|
|
|
|
|
|
|
|
| |
"setColumnVisibility" and "reorderColumns" methods - use "setColumns()" instead.
- ADDED: "setColumns" method
- CHANGED: updated the column picker to make use of "setColumns()"
- CHANGED: increased the size of the column resizer area and removed the hover highlighting
- CHANGED: minor code cleanup; removed JSLint instructions - they can be passed in separately and shouldn't clutter the actual code.
|
| |
|
| |
|