EasyUI Forum
March 28, 2024, 06:37:55 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Datagrid with pagination - check/uncheck  (Read 3674 times)
jega
Full Member
***
Posts: 190


View Profile
« 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
Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 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)
Logged
jega
Full Member
***
Posts: 190


View Profile
« Reply #2 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


Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!