Skip to content

this.updateColumnDefinition throws error on frozen columns #4821

@NightmareStM

Description

@NightmareStM

Hi, I encountered an issue when using updateColumnDefinition on a frozen column.

Here is my table definition:

layout: "fitColumns",
index: "sKey",
progressiveRender: true,
progressiveRenderSize: 50,
resizableColumnGuide:true,
rowFormatter: rowFormatter.bind(this),
initialSort: [
  {column:"sKey", dir:"asc"},
],
columns: [
  {
    title: "Key",
    field: "sKey",
    editor: "input",
    headerFilter: "input",
    headerFilterPlaceholder: "filter",
    headerSortTristate: true,
    cellEdited: this.cellEdited,
    cellEditing: this.cellEditing,
    cellEditCancelled: this.cellEditCancelled,
    widthGrow: 2,
    minWidth: 150,
    frozen: true
  },
  ...
]

When I run table.updateColumnDefinition("sKey", {validator: "maxLength:128"}) i get the following error:

Uncaught (in promise) TypeError: column.element.after is not a function

The same call woks correctly on non-frozen columns.
I am using Tabulator v6.3.1.
I noticed that a similar issue was reported in 2023 and fixed in v5.6 ( #4357 )

Metadata

Metadata

Assignees

No one assigned

    Labels

    Possible BugA possible bug that needs investigation

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions