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

DataGrid : Sync SelectedRows to children components #3386

Closed
David-Moreira opened this issue Feb 1, 2022 · 0 comments
Closed

DataGrid : Sync SelectedRows to children components #3386

David-Moreira opened this issue Feb 1, 2022 · 0 comments
Assignees
Labels
Area: DataGrid Type: Bug 🐞 Something isn't working

Comments

@David-Moreira
Copy link
Contributor

David-Moreira commented Feb 1, 2022

DeadlyEmu: anyone have any ideas how to code the selected items within a DataGrid? I have tried setting the values within the variable which holds this data for selected items on the item then used a ref to refresh that DataGrid but this does not work?

--- From Blazorise's Discord Channel

Related PR : #3245

User code should work, there's a bug with the internal sync of SelectedRows, when it is manually updated and other components do not know of this.

Also consider adding an overload for DataGrid.Select() for multiple items, for v.1.0.0

EDIT: Even await dataGridRef.Select(data[1]); does not seem to be working properly. :(
EDIT2: This happens when the Datagrid is really minimal and there isn't much that triggers children updates. So with just binding a List and a simple columns with no Field set.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: DataGrid Type: Bug 🐞 Something isn't working
Projects
Archived in project
Development

No branches or pull requests

2 participants