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

Access and Modify Properties of Grid Items in BlazorBootstrap #732

Open
AlexandreIorio opened this issue May 22, 2024 · 1 comment
Open

Comments

@AlexandreIorio
Copy link

Hello,

I am currently working with the BlazorBootstrap Grid component and found that accessing and modifying the properties of items within the grid could enhance functionality significantly. Specifically, I would like to suggest the addition of features that allow for direct manipulation of item properties such as IsChecked.

This feature would be particularly useful for scenarios where the state of individual grid items needs to be modified dynamically, such as toggling a checkbox within the grid. Implementing this could improve user interaction and data handling capabilities within the grid.

Could you consider adding this functionality in a future update?

Thank you for considering this enhancement.

@brian-aisin
Copy link

In addition to the above, being able to set a row in the grid as "clicked" would be helpful as well.

An example:

  • User clicks an item in the grid, and the method assigned to RowClass changes the background color for the clicked row.
  • The clicked item is displayed in a component for editing.
  • The clicked item is modified in the component, but isn't valid.
  • The user clicks another item in the grid.
  • A confirmation dialog is shown to the user that the clicked item has been modified but isn't valid, and if they want to continue editing the station.
  • If the user answers Yes on the dialog, the newly selected row is discarded. However, the newly selected row still appears to be the clicked row, even though it isn't being edited.

I attempted to set the clicked row through code, but so far haven't been successful.

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

3 participants