I have a requirement to select all items in grid data(pagination is enabled on grid).
I have tried with below option.
created DT on click of Select All to set/reset the data items. it is working fine. when i click on select all, all work items got selected. but the Select All checkbox is enabled when i navigate to next page. by default it should be deselect.
please let me know how to reset header data(Select All checkbox)
Actually the pagination in the grid has the issue with Select ALL option i.e. if user select selectALL option in the Page1 and navigates to Page2 then in Page2 the selectALL checkbox is by default selected but the records in this page are not being selected. Similarly, now if you deselect the selectALL checkbox in the Page2 and navigate back to Page1 then the selectAll checkbox is deselected in Page1 but the records in this page are all selected. This is happening because the selectAll checkbox value is not setted properly during the page navigations and it is not independent of the page records selection.
So i had customized the code in order to fix this bug with a post processing activity of the grid, i.e. when the page is loaded my activity will check for all the records in the page and if all the records are selected then selectALL checkbox value will be initialized with selected option and if any of the record is not selected then it will deselect the selectALL.