tolims filter, pagination
This commit is contained in:
@@ -18,7 +18,7 @@
|
||||
const data = window.gridData || [];
|
||||
const meta = window.gridMeta || {};
|
||||
const columns = meta.columns || [];
|
||||
const totalRows = data.length;
|
||||
let totalRows = data.length;
|
||||
|
||||
// ── DOM refs ────────────────────────────────────────────────────────────
|
||||
let rowContainer = null;
|
||||
@@ -463,6 +463,10 @@
|
||||
function renderVisibleRows() {
|
||||
if (!rowContainer) return;
|
||||
|
||||
// Refresh totalRows in case data was modified externally
|
||||
totalRows = data.length;
|
||||
if (revealedCount < totalRows) revealedCount = totalRows;
|
||||
|
||||
// Destroy Select2 on existing rows
|
||||
$(rowContainer).find('.select2-hidden-accessible').select2('destroy');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user