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

cannot able to check or uncheck the row dynamically #19

Closed
sridharAJ opened this issue Jul 28, 2015 · 2 comments
Closed

cannot able to check or uncheck the row dynamically #19

sridharAJ opened this issue Jul 28, 2015 · 2 comments

Comments

@sridharAJ
Copy link

Hi i have an case, where i need to uncheck or check the row without doing it by click event.

Means, there should be a function which can accept rowIndex and isSelected(boolean) as parameter and perform the above uncheck or check based on isSelected.

please provide some function.

@AllenFang
Copy link
Owner

I've commit a newest code to master and you can clone to your local and run qsample as this gist : https://gist.github.com/AllenFang/e6440666329ac5b27a60.

Just like what tell you on hangout. It's hard for me to provide a instance or static function for user to call for set the row select or unselect.

So I use componentWillReceiveProps in TableBody and in these component which render BootstrapTable can change the selected rows on table through re-render by selectRow prop.

A simple explain is if you want to select some rows, you just set the selectedattribute in selectRow prop and trigger render.

@AllenFang
Copy link
Owner

About the dynamic select or unselect feature, I've released on v0.9.5

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

No branches or pull requests

2 participants