summaryrefslogtreecommitdiffstats
path: root/slick.grid.js
Commit message (Collapse)AuthorAgeFilesLines
...
* Fix #302 and #319 (though the user seems confused about his own bug report):2.0.1Michael Leibman2012-04-131-11/+14
| | | | | | | - 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.
* Fix #313 - Call updateRowCount() in setData().Michael Leibman2012-04-131-1/+2
|
* Fix issue #326.Michael Leibman2012-04-131-1/+3
|
* Fix #314 - reset the cached stylesheet variable when CSS rules are removed.Michael Leibman2012-03-311-0/+1
|
* Fix issue #223 by lazy-getting cell CSS rules.Michael Leibman2012-03-281-23/+36
|
* Fixed colspan bugDaniel Frey2012-03-051-2/+5
|
* Removed unnecessary search for .c<columnNumber>.Michael Leibman2012-02-261-2/+2
|
* Reverted to pre-jQuery 1.7 event binding syntax for compatibility with older ↵Michael Leibman2012-02-261-14/+14
| | | | versions.
* Mac compatibility fix for multicolumn sort + workaround for jQuery bug ↵Michael Leibman2012-02-261-1/+4
| | | | breaking e.metaKey in Windows.
* Merge pull request #292 from dacap/masterMichael Leibman2012-02-261-8/+21
|\ | | | | Improvements to multi-column sort.
| * Add getSortColumns() method to SlickGrid.David Capello2012-02-221-0/+5
| |
| * Add support to remove columns with ctrlKey from "sortColumns" when ↵David Capello2012-02-221-8/+16
| | | | | | | | "multiColumnSort" option is enabled.
* | Fixed issue #291.Michael Leibman2012-02-261-1/+1
|/ | | | | | 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.
* Added an option to set "defaultFormatter".Michael Leibman2012-02-151-2/+3
|
* Fixed broken sorting.Michael Leibman2012-02-091-5/+5
|
* Fixed header row not scrolling all the way to the right (issue #279) and the ↵Michael Leibman2012-02-061-1/+7
| | | | viewport height being off by a couple of pixels.
* Added multi-column sorting.-IGI-2012-02-051-22/+60
|
* Added spacebar handling to CheckboxSelectColumn plugin (issue #277).Michael Leibman2012-02-051-1/+1
|
* Removed a totally unneeded empty DIV creation when scrolling by small amounts.Michael Leibman2012-01-301-0/+2
|
* Removed "alpha" references.2.0b1Michael Leibman2012-01-281-2/+2
|
* Made is dead simple to sync selection and cellCssStyles on DataView changes.Michael Leibman2012-01-271-25/+47
| | | | | | | | | | | | | 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.
* Properly handle "rerenderOnResize" columns column resize and autosizeColumns().Michael Leibman2012-01-241-2/+10
|
* Formatter & Editor cleanup.Michael Leibman2012-01-231-1/+5
| | | | | | | | | - 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).
* Fixed autosizeColumns (Issues #185 and #248).Michael Leibman2012-01-231-15/+21
|
* More resizing-related fixes:Michael Leibman2012-01-231-4/+5
| | | | | - 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.
* Another follow-up fix to ↵Michael Leibman2012-01-231-11/+6
| | | | https://github.com/mleibman/SlickGrid/commit/98a503f3048591dbd6ae3ff8565e5319b97cf37c - fixed an issue with empty grid display when forceFitColumns=true.
* Implemented explicit grid initialization option (issue #210).Michael Leibman2012-01-211-49/+70
|
* Fixed corrupted grid on column changes introduced in the previous commit.Michael Leibman2012-01-201-0/+3
|
* Added "fullWidthRows" option (issue 47), made autosizeColumns() detect ↵Michael Leibman2012-01-201-61/+62
| | | | 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.
* More cleanup.Michael Leibman2012-01-171-221/+221
|
* Reformatted code.Michael Leibman2012-01-171-2264/+2318
|
* Fixed issue #200 - Calculate maxSupportedCssHeight only once and share ↵Michael Leibman2012-01-161-2/+8
| | | | between grid instances.
* Fixed an uninitialized variable in the last commit.Michael Leibman2012-01-161-1/+1
|
* Fixed issue #176 - KeyNav brakes when using autoedit and at end of grid ↵Michael Leibman2012-01-141-0/+2
| | | | (left,right,top,or bottom).
* Tabs to spaces.David Yip2011-12-141-1/+1
|
* Convert some stray [] accesses to the field accessor interface.David Yip2011-12-141-7/+9
|
* Include the missing "e" argument in onSort event generation.David Capello2011-12-121-1/+1
| | | | | | | 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>
* removed just a comma on line 85 to give ie in compatibility mode a chance...ubit642011-11-291-1/+1
|
* Added ability to specify a custom data item column value extractor and an ↵Michael Leibman2011-11-251-8/+14
| | | | example demonstrating this functionality.
* Fixed header row sizing.Michael Leibman2011-11-221-5/+6
|
* Various fixes.Michael Leibman2011-10-291-18/+7
| | | | | | | | | | | | - 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.
* Start max supported CSS height at 1M pixels.Michael Leibman2011-03-231-1/+1
| | | | This fixes occasional Chrome errors and zoom issues.
* Fixed drag'n'drop broken by the last checkin.Michael Leibman2011-03-231-0/+2
|
* Added an "enableTextSelectionOnCells" option and fixed text selection ↵Michael Leibman2011-03-221-3/+16
| | | | getting hijacked by drag'n'drop in dragInit.
* Throws an error when the container does not exist in the DOMRyan Schumacher2011-03-051-0/+3
|
* FIXED: old data getting referenced after a call to setData().mleibman2011-02-241-12/+9
|
* Cleaned up column width calculations and removed syncColumnCellResize option.mleibman2011-02-221-204/+425
| | | | | | | | | | | | | | | | | | 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.
* Issue #151 - Can't destroy a grid with checkboxrowselect pluginmleibman2011-02-191-1/+1
|
* Issue #68: Fixed column headers not scrolling horizontally in Opera (thanks ↵mleibman2011-01-211-4/+4
| | | | vlsi!).
* Fixed FF-specific error in loading async editors.mleibman2011-01-191-1/+1
|
* Added column "headerCssClass" option.mleibman2011-01-101-1/+3
|
* Work in progress.mleibman2011-01-051-7/+11
| | | | | | 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 columns appearing as resizable when "resizable" is false for all of them.mleibman2011-01-021-2/+5
| | | | Fixed arguments defaults in event triggering in the grid.
* YUIDoc documentation.mleibman2010-12-311-1/+0
|
* This is likely unfinished and buggy, but it is waaay too cool not to check ↵mleibman2010-12-301-28/+68
| | | | | | | | | | | | | | | | 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 a leftover call to console.log().mleibman2010-12-281-1/+1
|
* Removed jquery.curStyles pluging and replaced all uses of curStyles and the ↵mleibman2010-12-201-15/+9
| | | | 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.
* Fixed a typo in onBeforeDestroy.mleibman2010-12-201-1/+1
|
* Fixed RowSelectionModel destructor.mleibman2010-12-191-0/+3
| | | | Added a check for jQuery.curStyles to Slick.Grid.
* Merge fix.mleibman2010-12-171-4/+6
|\
| * Fixed the scroll position jumping when trying to set focus in IE.mleibman2010-12-151-4/+6
| |
* | Changed the grid to read the dimensions from the computed style instead of ↵mleibman2010-12-171-28/+43
|/ | | | actual elements. This fixes the issues displaying the grid in an initially hidden container.
* Keyboard focus is now set on the canvas and not the individual cells to ↵mleibman2010-12-141-28/+32
| | | | | | prevent forced scrolling by the browser. Re-rendering row with active cell no longer resets keyboard focus.
* Added a mechanism to set scope ("this") in events.mleibman2010-12-091-27/+34
| | | | | Grid and DataView now set the scope to the instance. Corrected args format in events in DataView.
* Fixed setSelectionModel not unsubscribing from the previous selection ↵mleibman2010-12-061-1/+1
| | | | model's events.
* Small bug fix in getCellFromPoint.mleibman2010-12-061-1/+5
|
* Added an onScroll event.mleibman2010-12-041-22/+24
|
* Added a fixed header row and an example of how to use it to implement inline ↵mleibman2010-12-041-31/+77
| | | | | | column filters. Renamed "secondary header row" to "top panel" for clarity.
* Added "updateColumnHeader" grid method.mleibman2010-11-281-13/+19
| | | | | | 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 CellRangeDecorator and refactored CellRangeSelector to use it.mleibman2010-11-271-28/+18
| | | | | | Added onHeaderClick event. Added onMouseEnter & onMouseLeave events. Extracted auto tooltips into a separate plugin - AutoTooltips.
* Fixed the onDragInit event handlers interfering with each other on click.mleibman2010-11-261-2/+0
| | | | | 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.
* Initial commit of v2.0 alpha.mleibman2010-11-261-806/+562
| | | | | | | | 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.
* FIXED: Issue 100 - Error thrown when grid with enableColumnReorder set to ↵mleibman2010-11-021-2/+6
| | | | false is destroyed. http://github.com/mleibman/SlickGrid/issues#issue/100.
* FIXED: Issue 99 - http://github.com/mleibman/SlickGrid/issues#issue/99. ↵mleibman2010-11-021-1/+1
| | | | (width/currentWidth layout bug after forceFitColumns) Thanks Andrew!
* FIXED: Issue 98 - http://github.com/mleibman/SlickGrid/issues#issue/98.mleibman2010-11-021-15/+14
|
* FIXED: Issue 95 - Force fit columns option does not work on initial rendermleibman2010-10-221-0/+1
|
* Merge branch 'master' of http://github.com/resolversystems/SlickGridmleibman2010-10-221-0/+5
|\
| * Merge branch 'resolver-dirigible'Giles Thomas2010-10-221-6/+10
| |\ | | | | | | | | | | | | | | | Conflicts (merged by hand): slick.grid.js
| | * Added new getData() function and replaced tabs with spaces.Giles Thomas2010-10-221-27/+32
| | |
* | | Incremented version to 1.4.3.mleibman2010-10-221-10/+9
|/ /
* | Added a "slickgrid" namespace to most bound events. Unbinding all ↵mleibman2010-10-211-10/+10
| | | | | | | | "slickgrid" events on destroy.
* | Added metaKey to allow Ctrl-select behaviour on OS XLeonardo Xavier2010-09-111-3/+3
| |
* | - CHANGED: removed unused files and added jquery.event.drop-2.9.min.jsmleibman2010-09-091-0/+12
| | | | | | | | | | - ADDED: new grid method "getCellFromEvent" - ADDED: drag'n'drop example to "example9-row-reordering.html"
* | - CHANGED: Moved line-height out into the default theme CSS file. This ↵mleibman2010-09-011-1/+1
| | | | | | | | 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).
* | - FIXED: row reordering didn’t work when the page was scrolledmleibman2010-09-011-2/+2
| |
* | - CHANGED: Switched the constructor to use a DOM node instead of a jQuery ↵mleibman2010-09-011-11/+8
| | | | | | | | object (passing a jQuery object still works though). This removes the need for the user to know or use jQuery.
* | - ADDED: “multiSelect” options to control row selection.mleibman2010-09-011-29/+34
| |
* | Updated version in SlickGrid comments to 1.4.1Milan Gardian2010-09-021-15/+15
|/
* Merged in Daptiv changes.1.4.1mleibman2010-08-231-10/+26
| | | | | | | - 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.
* Added onHeaderClick eventminorbug2010-08-241-0/+14
|
* - ADDED: preliminary support for cell range selection ↵1.4mleibman2010-07-091-42/+132
| | | | ("enableCellRangeSelection" option, "onCellRangeSelected" event)
* - CHANGED: removed "overflow:hidden" on grid canvas to allow outline and ↵mleibman2010-07-091-1/+6
| | | | | | box-shadow to work - ADDED: "eval(expr)" debug method to simplify development and debugging
* Merge branch 'master' of github.com:mleibman/SlickGrid1.4b2mleibman2010-07-071-30/+26
|\
| * - CHANGED: updated to version 2 of jquery.event.drag ↵mleibman2010-07-061-28/+22
| | | | | | | | | | | | (http://threedubmedia.com/code/event/drag) - CHANGED: removed the jquery.rule from build script
| * - FIXED: fixed "onViewportChanged" not getting fired in some casesmleibman2010-07-061-2/+4
| |
* | - CHANGED: encapsulated setting canvas width in setCanvasWidth()mleibman2010-07-071-8/+6
|/
* - FIXED: issue 15 (http://github.com/mleibman/SlickGrid/issues#issue/15). ↵mleibman2010-07-051-2/+2
| | | | 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.
* - CHANGED: removed support for hidden columns; removde ↵mleibman2010-07-051-170/+106
| | | | | | | | | "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.
* - FIXED: perf regression with respect to scrolling responsiveness1.4b1mleibman2010-07-021-9/+15
|
* - CHANGED: minor cleanupmleibman2010-07-021-23/+17
|