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

Reordering inserts at the wrong position when the store is filtered. #1764

Closed
bmblb opened this issue Oct 29, 2020 · 0 comments
Closed

Reordering inserts at the wrong position when the store is filtered. #1764

bmblb opened this issue Oct 29, 2020 · 0 comments
Assignees
Labels
bug Something isn't working forum Issues from forum resolved Fixed but not yet released (available in the nightly builds)
Milestone

Comments

@bmblb
Copy link

bmblb commented Oct 29, 2020

Forum post

Usecase:
From the example where we have Staff, replace staff with product of a production/assembly line, the order/index of row is actually priority of that product, sometimes reordering of product is required, for which we would filter on product list, and than re-prioritize the order inside a schedule.

Suppose in a factory you have 10 bikes(bicycles) of different types to be assembled/tested; it cannot be done for all 10 simultaneously, so prioritizing is required, and also re-prioritizing with applied filters is required

Steps to Repro:
Load filtering demo https://www.bryntum.com/examples/scheduler/filtering/
In features activate row reorder

features : {
        filterBar  : true,
        stripe     : true,
        timeRanges : true,
        rowReorder : true,
        eventEdit  : {
            items : { ...
 

Put i in staff filter, you will see

Staff Role
Linda Core Developer
Henrik Sales
Maxim Developer & UX
Mike CEO
Gloria CEO

Now drag Gloria and drop between row 1 and 2 (Linda and Henrik)
When you try dropping first time you want see any change, it looks like nothing worked
Try repeating step 4 again, you will notice, instead of Gloria getting reordered, Mike is disappeared

Staff Role
Linda Core Developer
Henrik Sales
Maxim Developer & UX
Gloria CEO

Now try moving, Linda between Maxim and Gloria
You may notice instead of moving there, Linda is at the bottom

Staff Role
Henrik Sales
Maxim Developer & UX
Gloria CEO
Linda Core Developer

You can remove the filter and see there very few row remaining, only 4 are there instead of 7

You may not find the weirdness(random reordering), as exactly as mentioned here, but you will notice it.

filterandreorder

@bmblb bmblb added bug Something isn't working forum Issues from forum labels Oct 29, 2020
@isglass isglass added this to the Grid 4.0.x milestone Oct 29, 2020
@isglass isglass modified the milestones: Grid 4.0.x, 4.0.x Nov 18, 2020
@ExtAnimal ExtAnimal changed the title Filtering and Reordering behaves weirdly when put together Reordering inserts at the wrong position when the store is filtered. Jan 11, 2021
@ExtAnimal ExtAnimal added the resolved Fixed but not yet released (available in the nightly builds) label Jan 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working forum Issues from forum resolved Fixed but not yet released (available in the nightly builds)
Projects
None yet
Development

No branches or pull requests

4 participants