Skip to content

Old column widths are reused on matching column names #3880

Closed
@Jeff-Clark

Description

@Jeff-Clark

A very slight modification to the 112 tutorial (add/delete/swap data) illustrates the problem.
In colDefs1 the 'company' field has width:60 and it works fine. colDefs2 has a column defined with the same name but with width:120 . When you swap the data to use colDefs2 it keeps the width of the company column at 60 rather than using the new value of 120.

It looks like there is some internal cache that gets reused when the column name is the same.

http://plnkr.co/edit/kpn77emSbQLb4VbVe0XK?p=preview

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions