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

Dynamic Method of Disabling Rows #392

Open
DCMattyG opened this issue Oct 27, 2023 · 0 comments
Open

Dynamic Method of Disabling Rows #392

DCMattyG opened this issue Oct 27, 2023 · 0 comments

Comments

@DCMattyG
Copy link

I've been exploring using the disabledRows parameter for React Data Grid. A shortcoming that requires quite a bit of additional coding to work around is when rows are sorted/reordered. It would be much nicer to have a disabled flag in the row props that you could pass into the Data Grid instead of defining a static list.

  • what edition are you using - community
  • version for @inovua/reactdatagrid-community - v5.10.2

What you did:

  • Used the disabledRows prop on the Data Grid
  • Sorted by a particular column
  • Observed that the disabled rows do not follow the row ID and the incorrect rows become disabled

Problem description:

  • The disabledRows prop is too static for something as dynamic as a Data Grid

Suggested solution:

  • Add a disabled prop to the row data to allow rows to be dynamically marked as disabled
  • This will allow data to be pre-processed to determine which rows should indeed be disabled and maintain the appropriate disabled rows upon sorting

I hope the above ask is clear, thank you so much for the consideration!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant