-
Notifications
You must be signed in to change notification settings - Fork 781
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
Remote Store but Local Search / Sort #990
Comments
@naorrosenberg, actually, it cant be done in current version, because inside the However, I think your consideration is possible happen for the other user too, so I will gonna to support this feature and my solution will be like following: remote = (remoteFunction) => {
// remoteFunction is a object, default is all false,
// { insertRow: false, dropRow: false, cellEdit: false, sort: false, pagination: false, search: false, filter: false }
//
remoteFunction.insertRow = true;
remoteFunction.dropRow = true;
remoteFunction.cellEdit = true;
return remoteFunction;
}
render() {
return {
<BootstrapTable data={data} remote={this.getRemote}
};
} How about above example? is that much intuitive? |
Thanks @AllenFang for such a prompt reply! Yes - this solution would be great, thanks. |
I can support this feature on next version(next week) |
Fixed on |
I'm not able to set |
I have a remote store (using MobX) and inject the data to the table component as props. I set the
remote
flag in the table accordingly.Obviously I need to write my own
onAddRow
,onDeleteRow
andonCellEdit
to update the remote store, but I'd like to avoid rewriting the search and sort code.Is there a way to use the default search / sort functionality with remote store?
The text was updated successfully, but these errors were encountered: