News in versions: FastGrid 1.0, TreeGrid 17.0
FastGrid FastSheet ExamplesSamples DocumentationDoc Download Licensing Prices Buy Development
services
References References Contacts
TreeGrid Gantt chart SpreadSheet ExamplesSamples DocumentationDoc Download Licensing Prices Buy Contacts
FastGrid documentation
Search in documentation
FastGrid versions compatibility

Changes log (txt file) Compare FastGrid 1.0 & TreeGrid 17.1

Using in JavaScript frameworks

Angular Ember Express React Svelte Vue Other frameworks NodeJS server SalesForce LWC

Data and creating FastGrid

Simple examples of creating FastGrid Create FastGrid Display grid Access grid by API Sheets, more grids switched in one place Layout and configuration Data rows, columns, toolbars, images Changes in data rows, columns, toolbars Saving changes to server Mark changes Loading children on expand parent Short format

Layout - grid parts

Parts - ColParts and RowParts Part size Part scroll position Sets Column sets Row sets

Toolbars

Toolbar Cells Icon Height Width Toolbar position Dragging and manipulating cells Special toolbars

Rows and columns
Default rows, columns, cells, toolbars
Row and column identity

Row / column id Row / column index Row / column name

Row and column manipulation

API to get grid objects Auto added columns & rows on scroll Blocks of rows / columns Adding / copying / moving Deleting Showing and hiding Layout menu Selecting rows and columns Fill cell values by dragging Locking grid against changes Undo & redo

Row and column tree

Row and column tree Row tree Column tree Expand & collapse

Cells
Cell values and attributes

Read and write any values by API Cell value Cell attributes Cell value & attributes in UTF8 Store

Editing cells

Editing During editing Validation and errors

Cell images

Row cell side icons Icons definition Mark icons and charts Mark icons list Row cell floating images

Cell size

Row height Column width Resizing rows and columns Padding Margin Cell span

Cell style

Grid style and look Cell style permissions Cell style Cell outer border Cell inner border Alternate row & column background

Other cell features

Cell hyperlink Cell tooltip Static cells Other cell attributes Row & column attributes to speed up

Cell types and formats
Cell type and format Range - more values / ranges in cell String type Html type Auto type
Bool type

Bool type Check side icon Bool type & Check side icon

Number type

Format Localization

Date type

Format Localization Calendar

Calculations - formulas
JavaScript formulas

JavaScript formulas Aggregate functions String aggregate functions Other functions

Editable formulas

Formula rules Formula attributes Defined names for editable formulas Conditional functions Lookup functions Cell reference functions Logical functions Informational functions Mathematical functions Trigonometry functions Rounding numbers Number conversions String functions Date functions Summary functions

Dialogs and menus

Dialog Dialog Place Dialog API Menu definition in Script Cell menu List Suggest

Features
Sorting rows / columns

Sorting Sorting settings Comparing strings

Grouping rows / columns

Grouping Grouping settings Comparing strings Pivot grid

Filtering rows and columns

Filtering Filter settings Comparing strings

Search in cells Import files to grid
Export files

Export files Export and copy to clipboard CSV data

Copy & paste via system clipboard

Copy & paste Copy to clipboard Paste from clipboard

Printing

Print Print to PDF

Global grid settings
Grid size & scroll

Grid size Grid scrollbars Paging and view Media rules - responsive design

Saving settings in storage or cookies
Focus and hover cells

Focus cell and cell ranges Mouse hover cells Highlight cells, rows and columns

Events

Mouse events Key events API events

Language

Translation Languages

Messages

Message Message style

Other API

API for iterating rows and columns Paint and repaint Various API methods

Debug & files

Debugging FastGrid files

UTF8 Store - fast & short data
Introduction - License & download

Basic description Main advantages Basic usage License Download Documentation

Script language implementations

JavaScript C# JAVA PHP

Suggested ucodes

Bits - small integers or enums Integers or enums with strings Date and time Floating point numbers Special strings

Basic ucodes

Integer 1 char String 1 char Date 1 char Bits 1 char Integer 2 chars String 2 chars Date 2 chars Float 2 chars Integer 3 chars String 3 chars Date 3 chars Integer and double float 5 chars String 5 chars Date 5 chars Fixed length string Separated strings Adjacent strings Prefix for escaping string Fixed length data Unused custom codes Prefix for stored separator or length Prefix for stored base number Unused basic ucodes

Complex ucodes

chars signed decimals multiple limits varstrings escape base chars2 signed2 decimals2 multiple2 limits2

Internal coding Profiling times for ucode options Function reference

FastGrid Node Server

This Node Server serves and accepts data in FastGrid JSON format and loads and saves the data in SQLite3 database or in static file. It can also generate PDF from FastGrid.
The file index.js can be used as framework for application serving files for FastGrid.

1) Install and run the Node Server

  • Go to directory /Examples/Frameworks/Server/.
  • Run here command npm install to install the node modules and wait until they are installed.
  • Next run npm start to start the NodeJS server. The server serves at http://localhost:8000/.

2) Test the NodeJS server with FastGrid

3) Use the Node Server

By default the server serves at http://localhost:8000/, the host and port can be changed in beginning of Index.js file.
The server provides four scripts called from the Index.js:
  • File.js (http://localhost:8000/File.js) - Loads from or saves data to static file. The file name is set by parameter file.
    The function is set by func parameter, available functions are get (get text file), getbin (get binary file), add (append to text file), set (save to text file, overwrite), setbin (save to binary file, overwrite).
    The data to save are in the request body. For example http://localhost:8000/File.js?func=getbin&file=Excel.xlsx.
    The File.js is universal script and be used for any files.
  • SQLTable.js (http://localhost:8000/SQLTable.js) - Loads from or saves data to SQL database, table TableData.
    The data to save are in the request body. For example http://localhost:8000/SQLTable.js?func=get
  • SQLTree.js (http://localhost:8000/SQLTree.js) - Loads from or saves data to SQL database, table TreeData.
    The data to save are in the request body. For example http://localhost:8000/SQLTree.js?func=get
  • Pdf.js (http://localhost:8000/Pdf.js) - Converts given html or binary data in request body to PDF. Uses Chrome headless in Node module puppeteer.
    Function getpdf. For example http://localhost:8000/Pdf.js?func=getpdf
    The Pdf.js is universal script and be used for any html to convert to PDF.

4) Other server files description

  • index.js - main hub that calls the other files.
  • SQLite.db - Sample SQLLite3 with tables for FastGrid examples for Angular, React and other frameworks.
    It contains two tables for examples: TableData and TreeData.
  • Excel.xlsx - source XLSX file for Excel example to be served and saved as is.
  • SheetsData.js - source JSON file for Sheets example to be served and saved as is.
  • StaticChanges.js - source JSON file for Static example. It is created for saved data in the sample and is server with the Static data.
  • FastGridNodeServer.html - this documentation
  • package.json - npm package file for installation