Skip to content

v1.0.9

Compare
Choose a tag to compare
@joneit joneit released this 29 Aug 01:55
· 950 commits to master since this release
  • Restored Safari support
  • Context Menu events no longer propagates
  • Added halign render property.
  • Fixed: Vertical scrollbar is no longer misplaced 200 pixels to the left when grid overflows canvas's container width.
  • Grid's container will default to a height of 300px and css relative positioning unless those attributes are set
  • Selection model
    • Added multipleSelections, a new grid property that defaults to false. Set it to true to "opt in" to get the old behavior wherein CTRL-click(-drag) selects additional cell regions. These multiple regions are nearly useless. (The application developer can programmatically inspect the selection model to see all such selections, the user can only COPY the most recently selected region.)
    • Sample code: Added a new dashboard checkbox Selection: one cell region at a time which (when one row at a time is also checked) causes the cell selection to travel with the row selection. See the code in fin-row-selection-changed event listener in demo.js.
    • Fixed demo: The Selection: one row at a time dashboard checkbox now initializes properly.
    • Fixed: User can now _un_check individual row selection checkboxes after clicking on the select all checkbox at the top of the row handle column.
  • Tree view
    • Fixed: Error was previously being thrown when column count was greater than row count.
    • Improved sorting: Now only sorts on expandable rows (rows with drill-down controls), leaving non-expandable rows (leaf node rows) stable sorted (i.e., they retain their sort positions from the previous sorter).
    • Improved default sort: When no column has an explicit sort, the group sorter is automatically applied, e.g., to the ID column which is usually hidden. UI no longer insists on a visible column sort; this functionality is now completely transparent to the user.
  • Filtering: Filter cell syntax a.k.a. Column Query Language (CQL)
    • Fixed: Error reported upon encountering operators consisting of consecutive non alpha chars, e.g., <=, >=, and <> (all of which incidentally have Unicode equivalents in CQL, , , and .)
    • Added opMustBeInMenu column schema option. When true, rejects manually entered valid operators not specifically in column's operator menu. Added usage example to demo.js on last_name column, which had a custom operator menu.
    • Fixed CQL syntax support: Certain error conditions were causing premature alerts. Now fails "gracefully."
    • Fixed SQL syntax support:
      • SQL parser
        • Now accepts unquoted numeric operands
        • Now accepts column name or alias as operand
      • SQL output
        • Now outputs column operands (restoring broken functionality)
  • Find Row API plug-in: Find/modify/replace/delete a matching data row object.
  • Added dataModel.addRow() method to add a new data row to the grid.
  • Internal change: Replaced use of KeyboardEvent.keyIdentifier in favor of KeyboardEvent.key because the former will be dropped in Chromium M53 due out in September. KeyboardEvent.key is also supported in IE 9 and FF 23. It is not however a perfect replacement. See comment under 1.4.0 for more information.
  • Added grid property enableContinuousRepaint (boolean). This is a dynamic property and can be set or cleared at any time. When this mode is set:
    • Repaint occurs continuously (without having to call grid.repaint()).
    • grid.getCanvas().currentFPS is a measure of the number times the grid is being re-rendered each second.
    • While useful to get a measure of your grid's render speed, we emphatically advise against shipping applications using this mode because it causes Hypergrid to gobble up CPU time even when the grid appears idle (the very scenario repaint() is designed to avoid).