EasyUI Forum
May 14, 2024, 04:21:57 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: Checkboxes In Datagrid  (Read 5096 times)
Darrel
Jr. Member
**
Posts: 74


View Profile
« on: February 13, 2016, 11:54:38 AM »

Hello,

I have some questions regarding checkboxes in datagrid,

1) Is it possible to select all the checkboxes of the datagrid on load of the page or on click of a button including the one in the header section?
2) If the header checkbox is checked, then is it possible to keep the checkboxes in the datagrid body checked even when I switch the pages using pagination?

Regards,
Darrel
Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 on: February 13, 2016, 05:41:19 PM »

1. Call 'checkAll' method to check all the checkbox in the page when loaded data successfully.
2. Set the 'idField' property for the datagrid, the checked rows will be held even though the user navigates to other pages.
Logged
Darrel
Jr. Member
**
Posts: 74


View Profile
« Reply #2 on: February 15, 2016, 09:48:25 AM »

Hello stworthy,

Thanks a lot for your reply.

Regards,
Darrel.
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!