By default, the left-most cell includes logic as to what kind of icon to show (dependent on the 'expanded' prop), what to do on expand/collapse, how to visualize the elements so that they have the tree-like structure. By using a custom cell, all this logic is overriden and hence, the default functionalities are missing. This means that you would need to implement yourself the default logic that the component comes with.
For your convenience, I am adding the code that implements that logic internally:
Is there a way to add this as a change request so developers don't have to reimplement the default logic and risk breaking changes on upgrades? It would be great to be able to supply a custom component to the expandable column. In our case, we just want to render a hyperlink so user can click on it.
Konstantin Dikov
Telerik team
commented on 18 Jul 2023, 03:25 AM
Hi Jacky,
You can create feature requests in our public feedback portal or log an issue for enhancement in our public repository:
Nevertheless, I am not sure that there could be a way for adding an option for customizing the expand/collapse cell without including the entire logic that is used internally.
Just for reference, here is an example demonstrating how to use custom cell with expand/collapse icon: