EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: jega on June 28, 2019, 02:46:46 AM



Title: Datagrid with pagination - check/uncheck
Post by: jega on June 28, 2019, 02:46:46 AM
Hi.

There is a clearChecked which clears all checked on all pages, but how to check all rows on all pages with one click??

Jesper


Title: Re: Datagrid with pagination - check/uncheck
Post by: stworthy on June 29, 2019, 01:20:23 AM
All the checked rows are stored in 'checkedRows' of the datagrid. You can set it with the rows that you want them to be checked. Please try this code.
Code:
var dg = $('#dg');
var state = dg.data('datagrid');
state.checkedRows = data;
dg.datagrid('loadData', data)


Title: Re: Datagrid with pagination - check/uncheck
Post by: jega on July 22, 2019, 01:36:18 AM
Hi

Can't see how this could help me

Just want all rows on all pages to be checked.

Like for rows on current page
selectAll/unselectAll
checkAll/uncheckAll

then for all pages, something like
selectAllPages/unselectAllPages
checkAllPages/unselectAllPages