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

How to quickly select multiple rows #6518

Closed
iamasbcx opened this issue Jun 13, 2023 · 3 comments
Closed

How to quickly select multiple rows #6518

iamasbcx opened this issue Jun 13, 2023 · 3 comments

Comments

@iamasbcx
Copy link

Version/Branch of Dear ImGui:

Version: 1.89.3 WIP
Branch: docking

Back-end/Renderer/Compiler/OS

Back-ends: imgui_impl_dx11.cpp + imgui_impl_dx11.cpp
Compiler: VS 2019
Operating System: Win10

My Issue/Question:
Table & Colums How to quickly select multiple rows when there are 10,000 rows, such as 500 rows

CTRL +left click ? click line by line?

@ocornut
Copy link
Owner

ocornut commented Jun 13, 2023

This is currently not trivial to handle when a clipper is used.

This is exactly what the range_select branch is aiming to solve and support. I am aiming/hoping this will be finished and merged in master in 1-2 months, but if you want to try it it would be super helpful.

range_select branch can be merged in docking without conflict, so perhaps you can try it?

@iamasbcx
Copy link
Author

very good Compilation tests can be done using

@ocornut
Copy link
Owner

ocornut commented Jul 18, 2024

Hello,

The multi-select feature has now been merged in master.

You can find many demos in Demo->Widgets->Selection State & Multi-Select

Also see https://github.com/ocornut/imgui/wiki/Multi-Select
image

@ocornut ocornut closed this as completed Jul 18, 2024
vimpostor added a commit to fair-acc/opendigitizer that referenced this issue Aug 16, 2024
This way they can be added with fewer clicks.
The latest Imgui version is required for this, as multi-selection has
only recently been implemented in imgui:
ocornut/imgui#6518

Fixes #193

While we are at it, this patch also implements clipping of the list with
an ImGuiListClipper.
This is possible, because all rows have the same height in the table.
With this change, scrolling through a large list (100k+ rows) is
significantly smoother.
vimpostor added a commit to fair-acc/opendigitizer that referenced this issue Aug 16, 2024
This way they can be added with fewer clicks.
The latest Imgui version is required for this, as multi-selection has
only recently been implemented in imgui:
ocornut/imgui#6518

Fixes #193

While we are at it, this patch also implements clipping of the list with
an ImGuiListClipper.
This is possible, because all rows have the same height in the table.
With this change, scrolling through a large list (100k+ rows) is
significantly smoother.

Signed-off-by: Magnus Groß <magnus.gross@kdab.com>
vimpostor added a commit to fair-acc/opendigitizer that referenced this issue Aug 16, 2024
This way they can be added with fewer clicks.
The latest Imgui version is required for this, as multi-selection has
only recently been implemented in imgui:
ocornut/imgui#6518

Fixes #193

While we are at it, this patch also implements clipping of the list with
an ImGuiListClipper.
This is possible, because all rows have the same height in the table.
With this change, scrolling through a large list (100k+ rows) is
significantly smoother.

Signed-off-by: Magnus Groß <magnus.gross@kdab.com>
vimpostor added a commit to fair-acc/opendigitizer that referenced this issue Aug 16, 2024
This way they can be added with fewer clicks.
The latest Imgui version is required for this, as multi-selection has
only recently been implemented in imgui:
ocornut/imgui#6518

Fixes #193

While we are at it, this patch also implements clipping of the list with
an ImGuiListClipper.
This is possible, because all rows have the same height in the table.
With this change, scrolling through a large list (100k+ rows) is
significantly smoother.

Signed-off-by: Magnus Groß <magnus.gross@kdab.com>
vimpostor added a commit to fair-acc/opendigitizer that referenced this issue Sep 2, 2024
This way they can be added with fewer clicks.
The latest Imgui version is required for this, as multi-selection has
only recently been implemented in imgui:
ocornut/imgui#6518

Fixes #193

While we are at it, this patch also implements clipping of the list with
an ImGuiListClipper.
This is possible, because all rows have the same height in the table.
With this change, scrolling through a large list (100k+ rows) is
significantly smoother.

Signed-off-by: Magnus Groß <magnus.gross@kdab.com>
RalphSteinhagen pushed a commit to fair-acc/opendigitizer that referenced this issue Sep 2, 2024
This way they can be added with fewer clicks.
The latest Imgui version is required for this, as multi-selection has
only recently been implemented in imgui:
ocornut/imgui#6518

Fixes #193

While we are at it, this patch also implements clipping of the list with
an ImGuiListClipper.
This is possible, because all rows have the same height in the table.
With this change, scrolling through a large list (100k+ rows) is
significantly smoother.

Signed-off-by: Magnus Groß <magnus.gross@kdab.com>
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