Need to change the state of the content checkboxes on clicking the header checkbox.
Clicking the header checkbox automatically changes the state of the content checkboxes when the header template is used with template column in the ejGrid. You can set the change client side event to the header checkbox in the Grid create event and it is triggered when checked on the header checkbox. The state of the content checkboxes can be changed in the same header change function.
The actionComplete event is used to maintain its state while performing Grid actions such as paging.
The following code example is common for all the three platforms.
The following screenshots display the header before being checked, after being checked and paging.
Figure 1: Before the change of header checkbox
Figure 2: After the change of header check box
Figure 3: After paging
|Article ID:||Published Date:||Last Revised Date:||Platform:||Control:|