Tag: #javascript
7 articles
-
Pivot Tables in a JavaScript Spreadsheet β Live Cross-Tab Summaries in a Few Lines
Turn a few hundred rows of raw records into a cross-tab summary that recomputes as the data changes. One createPivot call declares rows, columns, and aggregations; the handle's update / refresh / remove drive it from code. A full worked example with region Γ product sales, plus filters, grand totals, and the Lite-vs-Pro line.
-
Sort & Filter a JavaScript Spreadsheet β Excel-Style AutoFilter, by Click and in Code
Add Excel-style column sorting and header-dropdown filters to a data table in the browser. One createAutoFilter call gives users the dropdowns; getColumnValues / setColumnFilter drive the same filters from code. A full worked example with a live visible-row counter, plus the sort-vs-filter and Lite-vs-Pro details.
-
Stop Bad Data at the Cell β Data Validation in a JavaScript Spreadsheet
Dropdown lists, numeric and date bounds, custom formula checks β reject invalid input the moment it's typed, with zero form-validation code. A full order-entry example using ReoGrid Web's Excel-style data validation, including input prompts, error alerts, and xlsx round-trip.
-
Convert XLSX to JSON in the browser β no server, no upload
Turn an .xlsx file into JSON entirely client-side: lossless ReoGrid JSON for round-tripping, or plain data rows for your app. Practical code, files never leave the browser.
-
Traffic-Light Dashboards in a JavaScript Spreadsheet β Conditional Formatting by Example
Color-code a spreadsheet by its values β red stock warnings, green over-target sales, status-tinted rows β without writing a single styling loop. A full worked example using ReoGrid Web's three conditional-formatting rule types, with live re-evaluation as data changes.
-
One million rows in a browser spreadsheet β without loading one million rows
Three weeks ago we wrote that a million rows was out of scope for ReoGrid Web. We changed our mind. Here's the delay-load data source: a scrollbar that represents 1,000,000 rows while the grid holds only the few hundred you can actually see.
-
Reading and writing Excel files in JavaScript β import, export, and JSON
How to load .xlsx files into the browser, export a grid back to Excel, and convert between xlsx and JSON β all client-side, with styles and formats preserved. Practical code with ReoGrid Web.