How to add menu items conditionally for some cells or row headers? #242
Answered
by
anmcgrath
sankarkumarP66
asked this question in
Q&A
-
I can add new items. Is it possible to add a menu item conditionally? For example, I’d like to show a custom menu item only in the row header if a specific cell in that row meets certain criteria. |
Beta Was this translation helpful? Give feedback.
Answered by
anmcgrath
May 24, 2025
Replies: 2 comments 3 replies
-
I am able to add the row header text conditionally @if(somemethod(context)) //context has index property.. we can use that to get the row's model { // add your text here }I'm still working on how to restrict the menu item so that it only appears for RowHeader. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi all, wanted to add to what @deanparker-web wrote (thanks for giving the code.)
You can indeed use the ActiveRegion to determine which row is being selected. I would just add that you can use
to only show specific menu items for certain rows.
If you wanted to show a caret for the row headings only on specific rows you can use the RowHeaderTemplate.