GwtMaterialDesign / gwt-material-table

A complex table component designed for the material design specifications
https://gwtmaterialdesign.github.io/gmd-table-demo/
Apache License 2.0
27 stars 31 forks source link

Expand table row programmatically without mouse click #129

Open tsatatwer opened 6 years ago

tsatatwer commented 6 years ago

I have searched the API docs for a method to expand a table row programmatically but could not find any . If not supported this is maybe a wished new feature or an enhancement .
In my project the user choose some commands and these represented as table rows and send to server witch run these command(Table Rows) one by one and while these running the server send the running id of row to client witch then expand the running row and show live status .

kevzlou7979 commented 6 years ago

Thanks for submitting this, we will discuss this together with our team.

d-eggert commented 6 years ago

I would also love to see this feature in a future release.

tsatatwer commented 6 years ago

Hi ,

any new about this issue .thanks

tsatatwer commented 5 years ago

even no answer at all ??????.

kevzlou7979 commented 5 years ago

Sorry we currently in RnD Mode with 2.2 features, we will add this directly to our repo backlog. https://github.com/GwtMaterialDesign/gwt-material/issues/842

On Sun, Oct 21, 2018 at 5:12 PM tsatatwer notifications@github.com wrote:

even no answer at all ??????.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/GwtMaterialDesign/gwt-material-table/issues/129#issuecomment-431652034, or mute the thread https://github.com/notifications/unsubscribe-auth/AC_iF8XMivg1ZH_2U3lxYKbz3ZLGKBLfks5unDqRgaJpZM4RNthV .

tsatatwer commented 5 years ago

Glad to know that.

tsatatwer commented 4 years ago

Hi any update on the issue???.Thanks

tsatatwer commented 4 years ago

Again any update on the issue????

tsatatwer commented 4 years ago

@kevzlou7979 Again any update on the issue? please comment.

tsatatwer commented 4 years ago

@kevzlou7979 Again any update on the issue??????

lukas0krupa commented 4 years ago

I can see that release backlog is closed now, but this issue wasn't resolved, is that correct?

Something I am trying to use as workaround for time being (not tested properly, but should be NULL safe in case GMD changes):

     table.addRowSelectHandler(rowSelectEvent -> {
            log.finest("Trying to programmatically expand row: " + table.getRow(rowSelectEvent.getModel()));
            table.getRow(rowSelectEvent.getModel()).getWidget().getChildrenList().stream()
                    .filter(rowChild -> rowChild.getElement().getId().compareTo("colex") == 0)
                    .peek(rowChild -> log.finest("Filtered child with ID 'colex': " + rowChild))
                    .findAny()
                    .filter(maybeTableData -> maybeTableData.asWidget() instanceof TableData)
                    .flatMap(tableData -> ((TableData) tableData.asWidget()).getChildrenList().stream()
                            .filter(expandColumnChild -> expandColumnChild.getElement().getId().compareTo("expand") == 0)
                            .peek(rowChild -> log.finest("Filtered child (icon tag) with ID 'expand': " + rowChild))
                            .filter(maybeIcon -> maybeIcon.asWidget() instanceof MaterialIcon)
                            .map(icon -> (MaterialIcon) icon)
                            .findAny())
                    .ifPresent(icon -> icon.$this().click());
        });

GwtMaterialDesign/gwt-material#842

BenDol commented 4 years ago

Implemented in this commit https://github.com/GwtMaterialDesign/gwt-material-table/commit/0e6cd0afacaefd9bf3e7542200c7a0d988622a04

Not in a snapshot yet, we will be discussing what release we will get this into today.

tsatatwer commented 4 years ago

It is good feature to added to the gwt-material-table indeed...thanks

nstensland commented 3 years ago

Agree this would be very nice. Thanks.

tsatatwer commented 3 years ago

Any update on this enhancement it was a long time indeed since .Thanks