-
Notifications
You must be signed in to change notification settings - Fork 132
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
[Sourcing]: fdp tree table on check of parent checkbox , child checkboxes should also be checked #9355
Comments
This can be handled on the application side |
Hi @droshev , the guided sourcing tables can support until 2000 rows of data , hence it would be tedious way to make a check on each row's children and recursively check the checkboxes for child rows. Hence it would be great if it can be handled from F-NGX platform tree table side |
@mikerodonnell89 , @droshev, Let's agree before hand on the solution as this is cheaper than PR ;-) I checked this one and there needs to be two type of changes: 1) Platform Table level
2) Application
I assume when we do a search, it needs to reset existing checked state. |
@fkolar regarding point 2 on application - does this mean application has to check if parent checkbox is checked and based on that set the "checked" to true for child checkboxes? |
We discussed this and above describe solution is right way to go.
public interface Partial<TableItem<T = any>> {
checked: boolean;
value: T;
...
// All what we have on the TableRow and does not bellongs to TREE
}
public interface TreeItem extends TableItem {
expanded: boolean
expandable: boolean
children: Array< TreeItem >;
... }
|
Update: We are going to simplify this and we will use existing Type TableRow, which needs to be converted to interface, and then we will be able to expose this interface to the DataSource. |
This issue can be taken up in next sprint , we are fine with this. Thanks, |
Is this a bug, enhancement, or feature request?
Bug
Briefly describe your proposal.
On check of parent row's checkbox , the child rows should also automatically get checked until and unless user unchecks few of children rows
Which versions of Angular and Fundamental Library for Angular are affected? (If this is a feature request, use current version.)
angular 13
core / platform : 0.35.x
If this is a bug, please provide steps for reproducing it.
reproducible on https://sap.github.io/fundamental-ngx/#/platform/table#tree
Please provide relevant source code if applicable.
https://sap.github.io/fundamental-ngx/#/platform/table#tree
Is there anything else we should know?
This is a development blocker for guided sourcing
priority is A
Expecting a property from fdp-table which can be used to decide whether on check of "parent" row child rows should be checked or not - may be a boolean field.
The text was updated successfully, but these errors were encountered: