FastGrid in Angular
FastGrid in React
FastGrid in Vue
FastGrid in Svelte
FastGrid in SalesForce LWC
FastGrid in any HTML / JavaScript
and in ASP.NET / PHP / JAVA
Changes log (txt file) Compare FastGrid & TreeGrid
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
Parts - ColParts and RowParts Part size Part scroll position Sets Column sets Row sets
Toolbar Cells Icon Height Width Toolbar position Dragging and manipulating cells Special toolbars
Row / column id Row / column index Row / column name
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 tree Column tree Expand & collapse
Read and write any values by API Cell value Cell attributes Cell value & attributes in UTF8 Store
Editing During editing Validation and errors
Row cell side icons Icons definition Mark icons and charts Mark icons list Row cell floating images
Row height Column width Resizing rows and columns Padding Margin Cell span
Grid style and look Cell style permissions Cell style Cell outer border Cell inner border Alternate row & column background Animations in grid
Cell hyperlink Cell tooltip Static cells Other cell attributes Row & column attributes to speed up
Bool type Check side icon Bool type & Check side icon
JavaScript formulas Aggregate functions String aggregate functions Other functions
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
Dialog Dialog Place Dialog API Menu definition in Script Cell menu List Suggest
Sorting Sorting settings Comparing strings
Grouping Grouping settings Comparing strings Pivot grid
Filtering Filter settings Comparing strings
Search in cells Import files to gridExport files Export and copy to clipboard CSV data
Copy & paste Copy to clipboard Paste from clipboard
Basic AI concepts Basic AI settings Instructions for AI Built-in AI tools FastGrid AI tools Custom functions for AI tools AI UI settings API functions to control AI
Grid size Grid scrollbars Paging and view Media rules - responsive design
Saving settings in storage or cookiesFocus cell and cell ranges Mouse hover cells Highlight cells, rows and columns
Mouse events Key events API events
API for iterating rows and columns Paint and repaint Various API methods
Basic description Main advantages Basic usage License Download Documentation
Bits - small integers or enums Integers or enums with strings Date and time Floating point numbers Special strings
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
chars signed decimals multiple limits varstrings escape base chars2 signed2 decimals2 multiple2 limits2
Internal coding Profiling times for ucode options Function reference+: New or extended feature
C: Changed feature
!: Incompatible change
B: Corrected bug
3.3.3
+: Added OpenAI models Luna 6 and Sol 6.1. Removed old models Luna 5.6, Terra 5.6, Sol 5.6 and Nano 5.4 from predefined AI list.
C: Default AI model changed to Luna Average Prio.
C: Range calendar now selects exact end date, not one day more for time 00:00:00. For previous behavior set Dialogs.Calendar.Script.RangeEndDay = 1;
B: Clicking Ok after editing time without confirming lost the time change
C: Entering one number to calendar time now sets hours
3.3.2
+: If Cfg Language is empty string, it is chosen according to browser preferred language
B: In Firefox narrow menu shown up was shifted down by a few pixels
B: Lock text were not displayed translated
3.3
+: FastGrid is translated to 35 languages
C: Language files were split to formats, included in FGridE.js and set in FGrid.Format, and language texts included in FGridText.js loaded separately and set in FGrid.Lang
+: Added attributes LanguageFiles to load external files for all or specific language on demand
+: Added Toolbar default cell Languages to display languages combo
+: Added GPT 6 Astra and GPT Image 2.5 and xhigh and max quality
B: Using AI with longer text could allocate too much memory
+: SortVert and SortHorz can be placed to Left/Right/TextIcons, also both in one cell
+: Added ExportStrings to force exporting number values as strings prefixed with ' and formatted as strings
+: Added FE bits 13 - 15 to ignore FV, FT and FS on export
+: Added Cfg attribute SpanInitialized to preset and speed up spanned cells
C: Updated row and column initializations
+: Sorting by pivot header row and column preserves the original order and changes only direction. To sort aplhabetically use FA&16 = 0
+: Added GetValueOrig to get original cell value after load or last accepted changes.
B: Row spanned cells could be broken when scrolled horizontally
B: Translate were not applied in exported data
B: Text attribute was formatted in exported data
B: Group="" in cookie or added data was not applied in initialized grid
B: For Collapsed was not used the Def flag on saving / getting JSON data or cookie
B: Animations recalculated cells more times
B: Add called with array filled by one item did not copy the item to the rest
B: Cumulative Layout Shift (CLS) was increased by mouse hover
B: Cfg.Formats id was not translated by Languages
3.2
B: DefaultDate in Calendar could be shifted by timezone
!: Added Cfg AutoPaint attribute and set it to 1 to call Paint in requestAnimationFrame after any change in grid.
B: Animation was not done for added / copied rows
B: Possible JS exception when localStorage was disabled, e.g. when running in Chrome headless
B: Incorrect warning when passed data to columns that were not generated yet by Auto attribute
B: Book was not disposed when disposing all grids in book and could be reused
B: Row/column Selected attribute was ignored in input data
B: Grid input json could be modified in some cases and caused errors when reused
B: Children attribute was not deleted when loaded data for more parents at once
+: FastGrid function accepts events definitions object instead of single finish function
+: FastGrid function Sources accepts identification string or number to FGrid.Sources as a data source
+: AI can output created image also directly to by Cfg AIOutputImage
+: AI input accepts also dropped and pasted files like images (webp/png/jpg/gif), office documents (docx/xlsx/pptx), various text documents (txt/xml/svg/js/c/...)
+: AI input accepts also zip archives that are decompressed and their files are passed to AI
+: Added AI tool "code_interpreter" to generate files in OpenAI container. Added AI UrlContainers attribute to script for downloading files from containers.
+: Added new OpenAI 5.6 models and removed from default list all old models except Nano 5.4. Default AI model set to Luna Average.
B: AI communication could fail when downloading more files at once
C: priority tier is set only for particular models and not automatically for all available models
+: FastGrid can import pasted files in the same way as dropped files (if set Cfg PasteFiles). It is on by default in sheet.
C: In menu with hidden items there are removed adjacent separators
+: Added two toolbars AIInput and AIOutput to simplify splitting AI toolbar to two rows
+: Actual response id resp_...is printed with AITokens to output. If the resp_... is placed to start of AI input, it continues the conversation, even after browser page refresh
B: Entering edit mode in scrollable tag like AI output scrolled it always up
+: Added AIModel toolbar cell to show models directly on AI toolbar
B: Dragging toolbar could ignore NewLine if set in default toolbar
+: Added API method ComparePos to find order of two toolbars / rows / columns in grid
+: PdfHtml=3 sends to server also Script and Events and other defined functions
B: Printing to PDF failed if input json file passed directly contains $`
+: Rel attribute can be used also in Toolbars Part
+: Toolbar Height and MaxHeight can be set as percentage of the Toolbars Part
B: <hr> tags were removed on editing html
+: Mouse wheel with shift scrolls horizontally
+: FGrid.GetGrid() can be called without parameter to get active sheet or first grid on page
+: AddEvent and DelEvent can be called with book parameter to add/delete the event to all sheets in book and to all new sheets
+: Events tag in input data can define more handlers for one event by adding "_xxx" to the event name
C: FastGrid tag has set min-width:0px, if placed in flex parent
+: Grid id can be set also in the FastGrid tag (<fast-grid>)
C: Dialog MinWidth is preferred to maximal width due grid width
B: OnLoadError was ignored if defined in data Events
+: Added FGrid.NoFastGridTag property to not process the <fast-grid> tags, used in Angular wrapper
B: Files could not be imported in Angular in some cases
!: Added Quote to PdfFlags to always produce correct JSON
+: PrintPageSize, PrintPageLandscape, PrintMarginWidth and PrintMarginHeight are sent in pdf request as separate parameters (without Print prefix)
+: Sources Sheet can contain "." to be added to all sheets, but does not create Book
+: Added functions FGrid.MergeSources and FGrid.RunSources to simplify Sources manipulation
3.1
+: Added new styles Bare and Silver
C: Updated other styles for better look, added various new style colors, updated scrollbars, icons, grid borders, ...
+: Added new set of icons Lucide
+: Added Cfg attribute StyleIcons to choose set of icons shown in grid. Added Toolbar and Settings item Icons to choose the icon set.
+: Added new borders as RowBorder and ColBorder 3,4,5. Updated styles to show short vertical and horizontal border and different border for header and index
+: Added toolbar cell to choose RowBorder and ColBorder
B: Gradients in style were not shown correctly in higher toolbar sections
+: Added new options to NoMargin to hide row and column margin according to RowBorder / ColBorder settings
!: Added Cfg attribute CustomScrollFirefox to show custom scrollbars in Firefox and it is on by default
C: Updated menu to better style especially rounded corners with menu header
+: The color names in style Colors can refer other defined color names in Colors
+: Icon c/copy attribute in Icons can contain JS code in {} and use actual Grid object
C: By default the Style toolbar shows Label in Sheet
B: Printing repeated rows / column to all pages could break the page on incorrect place
+: PrintFitPage now correctly updates the printed page when changes page orientation in browser print dialog
B: CSS and LinkCSS were ignored on printing
+: Added flags VMirror, VFormula, VOnGetValue, NoA to GetData to fill values to V created by Mirror, F/Formula or OnGetValue
C: Changed AI image model from gpt-image-1.5 to gpt-image-2
B: MaxSort was applied to count of Pivot sources
B: Action ClearValue did not repaint, the change was not displayed immediately
+: Added bit 128 to type in summary JavaScript formulas like average or median to ignore empty values
+: Added Style attribute to Sources to preset style for messages during loading
+: Support for React.StrictMode and possibility to dispose the grid during any asynchronous action
B: Xlsx sheet with empty <sheetData/> ignored columns definitions
B: Base font was sometimes not loaded when grid loaded in inactive browser tab
B: OnFixedScroll could be called with row parameter null
3.0.4
B: Grid did not show default scrollbars (without CustomScroll) on Firefox on Windows 11 with Settings > Accessibility > Visual effects > Always show scrollbars set to Off
3.0.3
B: AI API insertimage threw JS error on adding plain not generated svg
C: AI Model Fast changed from 5-1 codex mini to 5-4 mini and Standard and Pro changed from 5.4 to 5.5
B: AI could open some configuration dialog (sort/group/pivot/filter/search) even if the grid do not support the feature
C: Now the disabled AI API functions are disabled hard and not permitted for AI
B: JavaScript functions could have replaced options when column ids were numbers, happened especially in pivot. Now the number column ids are not replaced in the formulas
B: Corrected various minor bugs in Pdf.js for PDF export in Node
B: Pdf was created empty in some cases due waiting to load base font
C: Now first grid on page waits up to 500ms for loading base font before rendering
!: When printing large xlsx file to PDF, now only first 100 pages are sent to server to print, to avoid sending large data
+: Sped up calculated pivot tables with many empty values. Added PivotOptions&32 to disable this feature.
B: HTML tags entered to AI input were copied to AI output as HTML tags without converting to text
B: Entering empty string to PrintPages in Print dialog was not possible
B: OnEndEdit for Html type and entered empty value contained "<br>" in value parameter
3.0
+: Added OpenAI ChatGPT API to grid and sheet and created special FastGrid API to be used by AI
+: Added CopyPasteOptions cell attribute to control pasting when the cell is focused
+: Added CopyPasteInternal values 5 and 6 to only copy to clipboard without pasting from it
+: Added API method CopyToClipboard to copy text or html to clipboard
+: Added parameter single to OnPaste set when pasting to single cell
C: PasteFillSingle is preferred to CopyPasteInternal>=3
B: Pasting text to resizable toolbar cell did not update the height correctly
B: Some copy to clipboard actions were not animated by grid shake
B: CopyPasteInternal>0 was not used in some cases on html paste
B: Focused toolbar cell was not copied to clipboard without editing it
+: Added attribute Scroll to toolbar cell to show scrollbars for the cell
+: Added cell attributes ListAccept... and Cfg attribute SearchListAccept to control how the chosen list value is set to the cell
!: Added attribute CalcWidthsOverlay to ignore overlaid cells when next cell is empty. By default it is set for the last column.
+: Added CopyRow, CopyCol, CopyRows, CopyCols icons to row Panel
+: Added Cfg PivotVisible attribute to create pivot only from visible / filtered rows
+: Added toolbar attribute MaxResizeHeight to specify MaxHeight for resizing
+: Added Highlight to Undo
+: Added filter by Regex to Filter row / column operators
C: New items in grid list are added below source item instead of above
+: Added Copy sheet icon and action to sheets list dialog and added CopySheet API method
C: Separator "-" in the first and last item in menu is removed
C: Updated gradients in Beige style for higher toolbars
B: Delete sheet icon was inaccessible in Blue style
+: Added toolbar cell attributes IconPaddingLeft and IconPaddingRight
+: Extended PaddingTop / PaddingBottom also toolbar cells, not only toolbar
+: Added default toolbar cells ListHigh and EditHigh
!: Toolbar cell Rel attribute if set Width > 0. To use Rel attribute is required to set also Width = 0 in cells with predefined Width like Edit or List.
B: Search history list used html code
B: <a> Link in editable Html cell could not be clicked
B: LinkCSS was not used for toolbar cells
!: In Animate function call, if there already runs some animation for less than 100ms, the function does nothing and returns false, except set new parameter force = 1.
B: If called more API functions manipulating and using row / column indexes without Paint between, the indexes could be used incorrectly
B: Undo queue could be broken when adding / removing sheets or when adding / deleting rows / columns in Auto parts or when moving images between grids
+: Added API methods GetHighlight and SetHightlight to manipulate highlight in cells
C: Sped up hightlight for many cells
B: Focus border radius was not used for List dialog with header in the cell
B: Grid was enabled when closing dialog and message was shown or vice versa
+: Added Cancel attribute to Progress object in ShowMessage to to disable / enable the Cancel button in Progress message
+: Added Scroll attribute to Tool to permit scrollbars in the Static cell
+: Added bits 4 and 5 to Tool UseResize attribute to resize the cell also be left or top edge
B: Calling Focus with cell range as string could freeze the grid
B: Corner Focus icon could be displaced on animated cells
+: Added Cfg attribute StoreParents to speed up GetParent function calls
+: Added toolbar attribute HtmlEmptyString to permit html in EmptyString for the toolbar
+: SetImageAttr can set now also Cursor and Tip attributes
B: JS error in some cases after deleting some but not last image
B: PrevPart / NextPart could be ignored in some iterations
+: set parameter as number in iteration methods like Iter or GetFirst can have set bits &224 = 0 - from all parts, 32 - only actual part, 64 - without PrevPart, 128 - without NextPart
B: Inserting many rows / columns into sheet before other data could throw JS error
B: Moving rows with editable formulas to another sheet could incorrectly update the formula sources
+: Moving large ranges of cells with all source columns or to empty sheet was speed up by moving whole rows
B: Pivot could be create with duplicate rows / columns in some cases
+: Added value 4 to IconWrap to 4 as horizontally overlaid - icons will be displayed below or above the text in high cells
B: Click to grid empty space did not remove focus if permitted
+: When resizing row or column in focused range and applied ResizeAuto or ResizeOrig, the other rows / columns are updated accordingly
B: Too high toolbars could resize grid too high inside its main tag with invisible bottom parts
C: Updated FixedScroll behavior
+: Added API method GetType to get cell type according to Type and Format
B: Static tool cell could not be updated after changing value by SetValue
+: xlsx background picture is loaded as image in A1 with ZIndex = -1
B: Changed configuration saved in xlsx was not set to new sheets after the xlsx reopened
+: Added to Count API method to hidden parameter value &8 to ignore deleted rows / columns
+: EditMode attribute can be set also per cell
+: Book can be loaded from more CSV files as individual sheets
+: Added Cfg attributes CsvHeaderRows and CsvHeaderCols to specify count of header rows and columns in loaded CSV data
!: Attributes FV, FT, FS, FA, FE set to column are now not applied to special rows like Header or Filter
B: Cfg MaximizeHeight ignored window scroll top in case the document body height changed
B: When Auto type contained number or date format and string value, it could display NaN in overflown cell
+: Updated AcceptEnters to more differ between Shift+Enter and Ctr+Enter
B: Pasting text to prompt message was disabled
C: Fix method returns more result values
B: In Formula the methods and properties named as keywords, e.g. Value were replaced also when were used after dot
+: Added JSON event OnEditChange called during editing on any change
+: Added Cfg attribute HideImages to delete and hide images with their rows and columns being deleted and hidden
C: Menu items are higher on tablet
+: Added Menu Script attributes RowHeight to specify default item height in pixels and ButtonHeight to specify Buttons rows height in pixels
+: Added Menu Script attributes MaxHeight and MaxHeightMinWidth to split too higher menus to more columns automatically
!: sumrange formula function now joins also adjacent ranges with 1 space, e.g. "1;2;3;5~7;8" => "1~3;5~8".
B: Column tree part collapse icon could be inactive directly after click when grid scrolled right
B: Column tree part collapse icon was not clipped for too narrow column
B: TipValue tip was shown in sheet when the row was just one pixels lower than text height
B: Increased text precision to avoid some text shifted by one pixels left or right
+: Added API events OnGetSortString and OnGetGroupString to dynamically control sorting and grouping
B: Pivot did work correctly when grouped deleted rows by GroupDeleted
B: GetNextVisible / GetPrevVisible did not work correctly after hidden / shown some rows and Paint was not called
B: Row / column level was not collapsed or expanded with animation on some cases
B: Mirrored cell in group row in other column than main could not be set and mirrored to child rows
B: Focus to cell wider than col part could scroll the part on every focus change
B: GetData with "Cols" or "Rows" could double attributes "Width", "Height" and "Hidden" in the JSON output
B: FindUCode in UTF8Store did not work in java/jsp
B: Formula function join joined unformatted values
B: Action FocusAll did not work in large sheets
B: Progress message on loading data was always in Standard style
C: EditResizeHeight&8 is always on for toolbar cells
B: Tip was not hidden on call grid Dispose
B: ShowTip method could throw JS error when called by API without any event in grid
B: Previous dialog was not closed when called ShowDialog
2.1.2
B: Search text toolbar cell did not show text after change due animation
B: PaddingLeft / PaddingRight was added to edited text in toolbar cell
C: Updated List and Edit toolbar cells look in styles
2.1
+: Added animations to row, column and cell changes in grid
+: Added animations to hover and focus cursor movement and resize
+: Added InvertColors bit 2 to invert also border colors in inverse styles like Dark and Black
B: Beige style gradient background could be incorrectly position on IconZoom change
C: Removed preloading fonts defined by data:font
C: Increased waiting time for default fonts LucidaSans and OpenSans from 3s to 60s
B: GetResult and SetResult for toolbar and filter cells did not work correctly
+: Added new style "Plain" and updated grid for styles without borders
B: Hidden toolbar cell could be focused by keys
B: Progress dialog was not displayed for first time
2.0
+: Added new styles "Beige", "Green", "Blue" and "Black".
C: "Black" style renamed to "Dark" and updated.
+: "Standard" style renamed to "Gray". "Gray" style has only default Base settings. "Standard" style name preserved only for compatibility.
C: Default style changed to "Gray" with the same settings as Base (Standard) style
+: Added various text sizes and styles to TextStyles for styling headers
+: Added various color names to Colors for styling
+: Added and updated various radius attribute to Borders for rounded borders
+: Added attributes HtmlWidth and HtmlHeight for row and column
C: Updated White style to show slightly rounded borders
+: Added attribute PaddingTextBorder to reduce CellBorder with outside icon
+: Added attributes GroupRel and GroupMinWidth to use in group tree column instead of Rel and MinWidth
+: CellBorder round attribute can contain four values to set the corners differently
+: Added attribute ApplyAll to all defaults and CellBorders to use when loading it to initialized grid to apply its attributes also to all inherited defaults
B: OverflowTop==-1 blocked automatic resizing row when it have set bigger font
B: CellBorder Round attribute was ignored in Highlight
B: changedtool color was not applied
B: noteditabletool / readonlytool color was incorrectly applied to CellBorder
B: Default scrollbar thumb width was cut off by one pixel
B: GroupList and Group icons on toolbar could be dragged
B: Message on reloading ignored actual Style
+: Added attribute Round to MessageStyle for rounded borders
B: Resize width mouse cursor could be incorrectly hidden for toolbar cell
B: Message did not show shadow by default
+: Added toolbar "Styles" to show FastGrid styles, text sizes, row heights, toolbar icons scale and grid scale
+: Added SvgDefs defined as string or array to support gradients in styles
+: Added Cfg attribute InvertColors to automatically invert custom colors in inverted dark styles
B: During export showed messages in ExportStyle
+: Added Light (font-weight:300 / 600) and Condensed (font-stretch:condensed) options to TextStyle
+: Added new optional base font "Open Sans" in Grid/Fonts/OpenSansUnicode12s.woff2.js. It supports also Light and Condensed versions for TextStyle &4 and &8
+: Added CSS object to input JSON to add custom CSS to grid
+: Added attribute Font to Media to apply media on particular base font
+: Base Font object can be loaded also to initialized grid to change base font on style or other change
+: Added Cfg NarrowValues to specify the constants set by Narrow
B: Switching DraggingToolbars could throw JS error when Sheets were present without NewSheet
B: Exporting incorrect HTML like "<span>A & B</span>" without normalizing (~FE&4) produced invalid xlsx file
B: When exporting html entities as "&#xXX", these entities could be escaped when contained letters
B: Horizontal scrollbar could be unexpectedly hidden in Chrome on some DOM changes
1.0.4
+: Error message "$PdfUrlFile" is shown when PdfUrl is on file:// protocol and cannot be run
B: Editing Html type cell could produce XSS bug and permitted running JS code.
1.0.3
B: onafterprint handler was not removed after printing
1.0.2
B: Printing to PDF more column sets could throw JS error and produce blank PDF
1.0
! First released version