MudDataGrid: Add XML comment to ToggleHierarchyVisibilityAsync#11198
Conversation
- Changed the access modifier of the method from `internal` to `public` to allow external access for broader usability. - Added XML documentation to the `ToggleHierarchyVisibilityAsync` method to improve code clarity and provide detailed usage information.
|
I think this is done in #11181 already |
|
Indeed it is |
|
Closing, I just merged #11181 which contains this change already. |
|
I don't understand why it was closed by @ScarletKuro. It was approved and merged because it extends the previous PR, and this PR adds a comment to the now-public method. It should be approved as it was before by @Anu6is . |
|
|
Please retry analysis of this Pull-Request directly on SonarQube Cloud |
|
I'm adding a note here so we can all have a future reference Note:ToggleHierarchyVisibilityAsync uses |



Description
Fixes: #11145
Exposed the
MudDataGrid<T>.ToggleHierarchyVisibilityAsyncmethod by changing its access modifier frominternaltopublic, enabling external use and improving the component's flexibility.Motivation
While integrating
MudDataGridinto my application, I needed to toggle the hierarchy visibility in response to aRowClickevent. Since there was no public method available, I resorted to using reflection to accessToggleHierarchyVisibilityAsync. This workaround functions correctly, but the method serves a clear purpose externally and would be more appropriately marked aspublic.How Has This Been Tested?
The method's functionality is already covered by existing tests. No new test cases were required as this change only exposes existing behavior.
Type of Changes
Checklist
dev).