I would like to add a custom button in the header (see attachment). This would be a "expand/collapse all button". I wish to keep all the other header titles. I know about "TableHeaderRow cellComponent={}" but it seems to overwrite all of the header. Is it possible to add custom button in the header or implement a expand/collapse all button ?

Hi @franciscailleAstus,
聽
We suggest adding custom buttons into the Toolbar plugin. For more information, see this topic.
Adding custom elements into TableheaderRow can break our markup alignment.
For the Expand/Collapse all button implementation, see here.
Hi @MaximKudriavtsev,
Thanks for the answer.
Is it possible that it does not work with the latest versions ?
https://stackblitz.com/edit/react-emb86m?file=package.json
@franciscailleAstus,
The updated example https://codesandbox.io/s/kk2jnnyyn5
@MaximKudriavtsev Thanks again for the answer.
This seems to be for _RowDetailState_. Is there a way to do something similar with _GroupingState_ ?
@franciscailleAstus,
You can see in this topic how to work with Grouping. I created a simple example to demonstrate the implementation of the Expand/Collapse button for grouping. You can play with logic and customize behavior as you like.
@MaximKudriavtsev
Thank you very much !
This thread has been automatically locked since it is closed and there has not been any recent activity. Please open a new issue for related bugs or feature requests.