Don't expand if only contains blanks!

Hi,
 
In my example you can see that Battery is expandable, even though it only contains 1 item below (blank).
 
Is it possible to make it so it won’t expand in this case, as it doesn’t add anything extra? If not automatically, is there a manual way to specify which shouldn’t expand?
 
Thanks,
Ashley

Attachments:
example.png

1 answer

Public
Iryna Kulchytska Flexmonster February 28, 2019

Hello Ashley,
 
Thank you for posting your question here.
 
The component does not have a built-in option you can set to prevent expanding of the nodes only with (blank) item within.
 
I prepared a sample for you where customizeCell is used https://jsfiddle.net/flexmonster/up8rn0ax/. It illustrates how the expand icon can be removed and how the expand action can be prevented for the specific cell.
 
Please let me know if the JSFiddle sample is useful for your case.
 
Kind regards,
Iryna

Please login or Register to Submit Answer