bootstrap-table
bootstrap-table copied to clipboard
Multiple select in filter-control
Hello,
I was wondering if there is a way to get multiple select in filter-control to work? For example, selecting two (or more) filters in a single dropdown.
Thanks & kind regards.
Hello When will release v2.0.0 ? Do you have any workaround, to use any custom control? Is it posible use custom controls like select2, bootstrap-select or bootstrap-multiselect?
Consider adding support for https://github.com/wenzhixin/multiple-select plugin.
https://live.bootstrap-table.com/code/sebastiangehrt/2412
Consider adding support for https://github.com/wenzhixin/multiple-select plugin.
https://live.bootstrap-table.com/code/sebastiangehrt/2412
https://live.bootstrap-table.com/code/sebastiangehrt/2413 is the correct use case for multi select for e.g. a categorie
Consider adding support for https://github.com/wenzhixin/multiple-select plugin.
https://live.bootstrap-table.com/code/sebastiangehrt/2412
@wenzhixin multiple-select.js plugin does not seem to work together with bootstrap-table-filter-control.js see https://codepen.io/rayzoray/pen/pojooVo
@rayoray like this: https://live.bootstrap-table.com/code/wenzhixin/2451
@wenzhixin no not exactly: data-field="city" must be class="multiple-select".
![image](https://user-images.githubusercontent.com/63407006/78951654-37917d00-7b16-11ea-9139-52c0b11355c8.png)
You can use the bootstrap theme: <link href="https://unpkg.com/[email protected]/dist/themes/bootstrap.min.css" rel="stylesheet">
.
http://multiple-select.wenzhixin.net.cn/examples#themes.html
@wenzhixin theme helps, but selecting checkbox options does not filter table; see example pen: https://codepen.io/rayzoray/pen/jObOdvz
Yes, multiple select filtering is not yet supported, so mark it as a feature.
@wenzhixin do you have a temporary solution or workaround that you can share for this feature? as this issue has been identified in 2017?
Just to update the case:
https://live.bootstrap-table.com/code/albfan/3509
I think some work needs to be done on filtering multiple select (like do a OR instead of AND filter), but that's expected.
@wenzhixin so just using the dist/ directory instead of cdn is enough right?
@albfan As you can see the issue is still open, which means the table currently dont support multiselects.
@UtechtDustin of course, just mean if there's an unstable dist to deploy and provide feedback.
Just let me know if I can help in any way
If we need help we will ask you, thanks for the offer.
@wenzhixin tried to implement that with your multiselect lib, the problem is that we have to check the count of the options. Your lib clears the select element, is there a method to get the options/data ? (Cant find anything on the documentation)
@wenzhixin Is this issue resolved now ? I am looking for the same feature :/
@wenzhixin We are looking forward for this implementation
Working on this in this PR #5129
Is this issue solved in the new release v1.17.0? because I tried and got the same result :/
@gp-manishverma No its not, we had issue which was not easy to fix (that is the reason why we released 1.17.0 first). I hope this feature will be added in the next version.
Hi @gp-manishverma basically we're facing an issue when the table height is set. Because of that we're considering to improve the filter control logic and how this is rendered.
anyone know how to do it?
This is in progress. But still working on design phase since the height is causing issue with filter control
Hi guys. Any news on this?
Still working on it. This requires the extension to be rewritten.
Hi :) any rough guess, when this feature will be added?
Hi guys, this would really be a nice functionality. Is there any workaround for now?
@djhvscf any update on when this feature may be available? Let me know if I can be of any assistance.
hi, I'm working on recreate the extension. This in order to have a better extension, robust and stable. See the progress here: https://github.com/wenzhixin/bootstrap-table/tree/feature/multiselect-filtercontrol
@djhvscf Any running example. I try modifying my old one with your branch, but nothing seems to work
https://live.bootstrap-table.com/code/albfan/6507