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

SelectedItemChanged doesn't trigger after updating Items in FluentTreeView #2223

Closed
yermakovsergey opened this issue Jun 19, 2024 · 1 comment
Labels
needs: repro code or repository The provided description or code is insufficient to repro the issue

Comments

@yermakovsergey
Copy link

Tried new feature #1945 , have some problems with SelectedItemChanged after updating Items provided to TreeViewItem

🐛 Bug Report

I'm generating some collection, with sub Items, providing this collection to TreeViewItem, tree works fine when I'm just navigating/collapsing/expanding/selecting - SelectedItemChanged event works.
When I'm moving sub item from one folder(parent item) to another, selecting item stop triggering SelectedItemChanged.
I've tried second way- after moving sub item tried to generate new collection, binded to TreeViewItem, SelectedItemChanged didn't work also.

💻 Repro or Code Sample

Make collection for Items providing, with sub item. After that make some changes in collection- move subitem between items, or make new collection with updated source. after that selection doens't trigger SelectedItemChanged.

🤔 Expected Behavior

I'm expecting that I can do update in Items provider collection and selection will work after that.

😯 Current Behavior

after updates in Items provider collection, selecting item doesn't triggered SelectedItemChanged.

💁 Possible Solution

maybe after Items provider update we can call some .Refresh() for FluentTreeView ref.

🔦 Context

In my case I'm using SelectedItemChanged to expose some details of selected tree item.
User have a dropdown with items sources selection so I need to have possibility to full update date source in Items.
Also when user can move items in tree.

🌍 Your Environment

  • OS & Device: Windows on PC
  • Browser Google Chrome
  • .NET and Fluent UI Blazor library Version 8.0.6 and 4.8.0
@microsoft-github-policy-service microsoft-github-policy-service bot added the triage New issue. Needs to be looked at label Jun 19, 2024
@vnbaaij
Copy link
Collaborator

vnbaaij commented Jun 20, 2024

Please supply us with ready-to-run reproduction code in the form of something we can copy/paste, a (zipped) project structure or a GitHub repository.

We do not have capacity to craft or compose a reproduction for every issue that gets raised.

If no code or repository is provided, this issue will be closed in 3 days

Help us to help you. Thanks.

@vnbaaij vnbaaij added needs: repro code or repository The provided description or code is insufficient to repro the issue and removed triage New issue. Needs to be looked at labels Jun 20, 2024
@vnbaaij vnbaaij closed this as not planned Won't fix, can't repro, duplicate, stale Jun 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs: repro code or repository The provided description or code is insufficient to repro the issue
Projects
None yet
Development

No branches or pull requests

2 participants