Can anybody tell me how can I pass true as data from the backend to keep the checkbox selected even after click the next page number? Please do not tell to keep the selectedIds array at global then check data at render time keep the checkbox selected depending on is the item exists at the array.

case RenderCheckBox checkBox:
                    <text>
                    render: function (data, type, row, meta) {
                        return (data === 'true')
                            ? '<input name="@checkBox.Name" value="' + row.Id + '" type="checkbox" class="checkboxGroups" checked="checked" />'
                            : '<input name="@checkBox.Name" value="' + row.Id + '" type="checkbox" class="checkboxGroups" />';
                    },
                    </text>
                    break;