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

GridView bulk delete #21

Open
nicdnepr opened this issue Jun 17, 2019 · 6 comments
Open

GridView bulk delete #21

nicdnepr opened this issue Jun 17, 2019 · 6 comments

Comments

@nicdnepr
Copy link
Contributor

Why Grigview don't have bulk delete? Can it be add in common functional?

@samdark
Copy link
Member

samdark commented Jun 17, 2019

Won't add it in 2.0 since it's feature-locked. Will consider for 3.0.

@samdark samdark transferred this issue from yiisoft/yii2 Jun 17, 2019
@machour machour changed the title Grigview bulk delete GridView bulk delete Jun 23, 2019
@terabytesoftw
Copy link
Member

I think that the bulk delete should be implemented by the programmer, the GridView, any data source can be used.

@samdark
Copy link
Member

samdark commented Sep 5, 2022

That's not about data source. It's about UI such as the one in GMail:

image

@terabytesoftw
Copy link
Member

If it is possible to do it :)

@glpzzz
Copy link
Contributor

glpzzz commented Sep 14, 2024

Can the solution of this problem be to provide support for some kind of toolbar for GridView, a toolbar attribute which is an array of Yiisoft\Html\Tag\Button and of course toolbarAttributes?

Proposed markup:

<div>
  <div>
    <button>Action 1</button>
    <button>Action 2</button>
    <button>Action 3</button>
  <div>
  <table>
    ...
  </table>
</div>

This does not provide any functionality, just the markup for the controls. The functionality should be provided by the developer independently and is supposed to be used together with CheckboxColumn, not only for bulk deletion, but also for export or others.

Also, the styling is not provided by GridView itself.

@vjik
Copy link
Member

vjik commented Sep 14, 2024

This can be implemented via toolbar with buttons (as @glpzzz suggested) or with select, that contain actions:

image

But, I think, this features should to be postponed until after the release.

@samdark samdark added type:feature New feature and removed type:enhancement Enhancement labels Sep 15, 2024
@samdark samdark added this to the 2.0 milestone Oct 17, 2024
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

5 participants