gwt-material-table icon indicating copy to clipboard operation
gwt-material-table copied to clipboard

Expand table row programmatically without mouse click

Open tsatatwer opened this issue 8 years ago • 15 comments

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 .

tsatatwer avatar Dec 27 '17 18:12 tsatatwer

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

kevzlou7979 avatar Jan 04 '18 20:01 kevzlou7979

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

d-eggert avatar Apr 27 '18 09:04 d-eggert

Hi ,

any new about this issue .thanks

tsatatwer avatar Sep 21 '18 08:09 tsatatwer

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

tsatatwer avatar Oct 21 '18 09:10 tsatatwer

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 [email protected] 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 .

kevzlou7979 avatar Oct 21 '18 10:10 kevzlou7979

Glad to know that.

tsatatwer avatar Oct 22 '18 07:10 tsatatwer

Hi any update on the issue???.Thanks

tsatatwer avatar Dec 25 '19 08:12 tsatatwer

Again any update on the issue????

tsatatwer avatar Mar 26 '20 20:03 tsatatwer

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

tsatatwer avatar Mar 30 '20 11:03 tsatatwer

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

tsatatwer avatar Sep 07 '20 15:09 tsatatwer

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

lukas0krupa avatar Sep 25 '20 12:09 lukas0krupa

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.

BenDol avatar Sep 25 '20 19:09 BenDol

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

tsatatwer avatar Sep 26 '20 12:09 tsatatwer

Agree this would be very nice. Thanks.

nstensland avatar May 20 '21 21:05 nstensland

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

tsatatwer avatar Sep 29 '21 08:09 tsatatwer