Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: CRUD, Selection Column and jsPaginator: No checkboxes for dynamically loaded records #837

Closed
acicovic opened this issue Nov 10, 2019 · 3 comments
Assignees

Comments

@acicovic
Copy link
Collaborator

I have only tested this with CRUD, but this is probably a Grid issue.

When you have a CRUD with a selection column and a jsPaginator, the records which are dynamically loaded do not show a checkbox.

image

@ibelar
Copy link
Contributor

ibelar commented Nov 16, 2019

By default and for performance reason, javascript response return when using jsPaginator is not evaluate. Since CheckBox column rely on Fomantic-ui Checkbox module they are set using javascript.

In order to have them you need to explicitly set jsPaginator to evaluate js return by the server:

$g->addJsPaginator(30, ['allowJsEval' => true]);

Please note that doing so will reapply Checkbox to every rows within table on every scroll content load. Because TableColumn\CheckBox is not set per row basis but rather per table, like this:

  $("#atk_admin_grid_view_table").find(".cb_checkbox").checkbox();

Hope this help!

@ibelar ibelar removed the bug 🪲 label Nov 16, 2019
@acicovic
Copy link
Collaborator Author

Thanks, will check this out.

@acicovic
Copy link
Collaborator Author

Still had no time to test this but I will close this since a solution has been given. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants