how to get (in jquery) total number of rows listed in the bootstrap table.
it displays the message 'Showing 1 to 8 of 8 rows', but i need to get the total rows [8 rows] in jquery, can you provide one sample code.
I searched the documentation but there is no information.
Use $('#table').bootstrapTable('getOptions').totalRows or $('#table').bootstrapTable('getData').length.
Thanks for your inputs.
On refreshing the page $('#table').bootstrapTable('getOptions').totalRows shows 0. Can you explain why? However the records are properly displayed.
Issue is not consistent.
Can you create a new issue an share us an example?
Yes, please check https://github.com/wenzhixin/bootstrap-table/issues/2967
Most helpful comment
Use
$('#table').bootstrapTable('getOptions').totalRowsor$('#table').bootstrapTable('getData').length.