wenzhixin / bootstrap-table

An extended table to integration with some of the most widely used CSS frameworks. (Supports Bootstrap, Semantic UI, Bulma, Material Design, Foundation, Vue.js)
https://bootstrap-table.com/
MIT License
11.73k stars 4.44k forks source link

data-row-style function called for not just rows but for (rows * columns) when using filter-control #6140

Open karbonbaron opened 2 years ago

karbonbaron commented 2 years ago

Bootstraptable version(s) affected

1.20.0

Description

In version 1.19.1 function for row style was called just once for each row rendered. Now in 1.20.0 it takes this action for multiplication of rows * columns. E.g. 10 rows rendered, 28 columns => 280 function calls. Browser window get almost unresponsive during this time.

With further testing and help of example creation tool I got to point where switching on/off filter-control nicely shows it is source of issue

It affects formatter calling amount as well.

Example(s)

https://live.bootstrap-table.com/code/karbonbaron/11419

In console there is visible the amount of "row-style" calls.

Possible Solutions

No response

Additional Context

No response

djhvscf commented 2 years ago

Working on it

karbonbaron commented 1 year ago

Any update on this issue? Is there something I can do to push it forward? Thank you

danielcmitchell commented 1 year ago

Can we get an update on the status of the fix for this issue? It has been assigned and being worked on for over a year without an update of the status.

karbonbaron commented 3 days ago

Any update on this issue?