-
Notifications
You must be signed in to change notification settings - Fork 162
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
Grid "active" state, separate from "selected" #9969
Comments
Hello @baleeds, |
@ddincheva Yes, the rowClasses and rowStyles callbacks would be immensely helpful! Is there a timeline on when we might see that feature? |
Hi @baleeds , I am the Product Owner of Ignite UI for Angular. I would like to inform you that the feature has been included in milestone 18 in our roadmap. When we have draft specification for the feature, you would be updated and you can provide feedback on it. The feature would be released with our next major release. P.S> The ROADMAP is to be updated till end of the week |
Thanks @radomirchev! I greatly appreciate the details 👏 Is there a projected timeframe for when the major release might occur? We are deciding how to proceed in the meantime. |
@baleeds we are targeting end of Sept for the feature release. Which version of Ignite UI you're using? |
We are currently on 11.1.2, but we will do major updates for this feature. |
Just wanted to thank you all for your attention to this. The row classes (and styles) feature is working great for our use cases. 🎉 |
Thank you, @baleeds! We strive to listen whenever our customers have anything to share. Any type of feedback is highly appreciated as it validates our product direction, with that said, please feel free to share your feedback/review here. Thank you 🙏 |
Is your feature request related to a problem? Please describe.
Our UX requires checkbox multi-select for performing bulk actions but also has the ability to click a single row and open a details panel. The row that is being viewed in the details panel is then "active" and should have a blue background. The selection state is decoupled from the active state.
Describe the solution you'd like
I would like the ability to specify whether a row is "active" or the ability to specify custom classes based on the data in a row. Another option would be to have the row ID as a data attribute on the row DOM element.
I'm sure your team has seen ag-grid. Not saying you should be more like ag-grid, but they do have a feature where the grid options can specify a "getRowClass" callback which provides the row data and returns class names for a row. This feature would work to solve our problem, since we track the "active" state independently from the grid. One common way to track the active state would be the ID of an item in the current route.
https://www.ag-grid.com/javascript-grid/grid-callbacks/#reference-callbacks
Describe alternatives you've considered
The only way I can think to do this with my current understanding is to keep track of the active row primary key, and use the template context on each column template to determine if this column's row's data is active.
The text was updated successfully, but these errors were encountered: