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

Is there a simple way of showing only selected rows? #207

Closed
vgoklani opened this issue Jan 10, 2016 · 6 comments
Closed

Is there a simple way of showing only selected rows? #207

vgoklani opened this issue Jan 10, 2016 · 6 comments

Comments

@vgoklani
Copy link

Hi - I'm wondering if there is a simple toggle for showing only selected rows

Thanks

@AllenFang
Copy link
Owner

@vgoklani, you means default selected on table? Why I ask, because if the table rendered at first time then I select a row, if I enable "showing only selected rows", will cause user can't select another anymore...

if another question, welcome to join the gitter to discuss with us.

@vgoklani
Copy link
Author

For my use case, I have >1500 rows, and the user will select maybe 50.
the problem is that there isn't a simple way to see only the selected rows.

@AllenFang
Copy link
Owner

ok, I can add a button on top of table, if user click, then showing only selected rows, how about this idea?

@vgoklani
Copy link
Author

sounds good, thanks!

@AllenFang
Copy link
Owner

@vgoklani, for now, the workaround is you can handle selected row outside of the react-bootstrap-table and add a button in your component, when user clicked, you can just rendered these selected rows on table :)

AllenFang added a commit that referenced this issue Jan 16, 2016
AllenFang added a commit that referenced this issue Jan 16, 2016
@AllenFang
Copy link
Owner

@vgoklani, check the v1.4.2 for fixing. It's an example.939d53b

add showOnlySelected on selectRow props

var selectRowProp = {
    mode: "checkbox",
    showOnlySelected: true
};

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

2 participants