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

tree #5466

Open xumoqiu opened 3 years ago

xumoqiu commented 3 years ago

A very powerful plug-in, but the tree table can not be paginated, recommended to enhance it

Parent-child data that is not on the same page cannot be displayed as a tree

djhvscf commented 3 years ago

Is this a bug? Looks like a feature request for me.

xumoqiu commented 3 years ago

Hi Is there any progress on this issue

Dmkaz commented 2 years ago

Considering that there's no documentation that explicitly states you can't use pagination with the treegrid plugin, I'd classify this as a bug.

As @xumoqiu had said, if you enable pagination and select a page size that is less than the number of child nodes, the table will display '0' rows with the 'No matching records found' text.

Screenshot 2021-12-08 143903

As a related feature to correctly enable pagination, there should be an option to determine rows per page by only the root nodes. This would correctly paginate when child nodes are collapsed by default.