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

colspan for noDataFound case is not calculated properly with custom action #629

Open
chknim opened this issue Nov 29, 2017 · 7 comments
Open

Comments

@chknim
Copy link

chknim commented Nov 29, 2017

When action's add, edit, delete are all set to false and action's custom is added, empty table does not set colspan property properly (colspan value is one less than it's supposed to be). I have a solution here below.

this.isActionDelete = this.grid.getSetting('actions.delete');

this.isActionDelete = this.grid.getSetting('actions.delete');
+ this.isActionCustom = !!this.grid.getSetting('actions.custom');

<td [attr.colspan]="grid.getColumns().length + (isActionAdd || isActionEdit || isActionDelete)">

- <td [attr.colspan]="grid.getColumns().length + (isActionAdd || isActionEdit || isActionDelete)">
+ <td [attr.colspan]="grid.getColumns().length + (isActionAdd || isActionEdit || isActionDelete || isActionCustom)">
@chknim
Copy link
Author

chknim commented Dec 2, 2017

PR here. #631

@gabmarini
Copy link

+1

@farissi
Copy link

farissi commented Dec 29, 2017

The repo seems to be inactive :( how to get this implemented to the project?

@rizz5091660
Copy link

same goes here, no data found row is not correctly calculate number of column when applying settings = {selectMode: 'multi'...}

@hanalice
Copy link

hanalice commented Nov 10, 2020

PR here. #631

@chknim the PR is not pass the check, so it hasn't been merged. Pls have a look.

@chknim
Copy link
Author

chknim commented Nov 12, 2020 via email

@mouazAlkhodari
Copy link

@chknim
i have made new PR that do the same thing mentioned here
you can find it here #1307
i hope it could be merged asap

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

No branches or pull requests

6 participants