EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: Darrel on February 13, 2016, 11:54:38 AM



Title: Checkboxes In Datagrid
Post by: Darrel 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


Title: Re: Checkboxes In Datagrid
Post by: stworthy 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.


Title: Re: Checkboxes In Datagrid
Post by: Darrel on February 15, 2016, 09:48:25 AM
Hello stworthy,

Thanks a lot for your reply.

Regards,
Darrel.