New Features of ZK Spreadsheet 2.1
The ZK Team
May 30, 2011
ZK Spreadsheet 2.1
ZK Spreadsheet is an Ajax component that delivers functionalities found in Microsoft Excel to your browsers. ZK Spreadsheet 2.1 bring with it a host of new features including auto filter functionality, vertical merging, support for copying and pasting to Excel and exporting to HTML.
AutoFilter functionality
In both the ZK Spreadsheet app and ZK Spreadsheet is is now possible to AutoFilter a range of values from a particular column. Filters can be applied, re-applied and cleared. The UI clearly displays when a filter is cleared, applied or cleared. For example:
Auto filter off
Applied
Cleared
For more information please refer to the ZK Spreadsheet Essentials.
Support copy and pasting to Excel
Export to HTML
Having implemented exporting to Excel and PDF in previous versions, ZK Spreadsheet now enables exporting to HTML.
For more information on exporting to HTML please take a look at .
Vertical merge
ZK Spreadsheet 2.0 now introduces the ability to merge cells vertically as well as horizontally. For example:
public void onClick$mergeCells() {
Ranges.range(spreadsheet.getSelectedSheet(),
topRow,
leftCol,
bottomRow,
rightCol).merge(false);
}
For more information please take a look at http://books.zkoss.org/wiki/ZK_Spreadsheet_Essentials/Working_with_ZK_Spreadsheet/Configure_and_Control_ZK_Spreadsheet/Merge_Cells_or_Split_Merged_Cells.
Autofill
Auto linear increase
month/week auto increase
Date auto increase
Number increments
Support vertical alignment
Protecting cell ranges
Cells can now be locked to prevent editing. The following example demonstrates how to lock a cell.
CellStyle newCellStyle = cloneStyle(cellStyle, sheet.getBook());
newCellStyle.setLocked(lock);
Comments
Copyright © Potix Corporation. This article is licensed under GNU Free Documentation License. |