To achieve this functionality with the ShieldUI jQuery grid, you need to use a little bit of additional code and check the
expandButtonCreate event handler for a specific value.
There is a good example available which demonstrated this functionality here:
https://demos.shieldui.com/web/grid-general/conditional-hierarchy
I hope this suggestion helps.